Closed vaidasn closed 2 years ago
modify fm_message_in.go#L45
maybe better, construct opt(pbfieldmask.FieldMask)
to make sure In
and Out
has been initialized.
opt := &pbfieldmask.FieldMask{
In: new(pbfieldmask.InMessageOption),
Out: new(pbfieldmask.OutMessageOption),
}
modify
fm_message_in.go#L45
maybe better, constructopt(pbfieldmask.FieldMask)
to make sureIn
andOut
has been initialized.opt := &pbfieldmask.FieldMask{ In: new(pbfieldmask.InMessageOption), Out: new(pbfieldmask.OutMessageOption), }
Your proposed fix doesn’t help, I’m still getting the error:
[error] unable to convert user.pb.fm.go to proto: template: go:12:22: executing "go" at <$pair.FieldMaskOption.In.Gen>: nil pointer evaluating *fieldmask.InMessageOption.Gen
However there is no error with my PR.
fine, give me try
I see,
ok, err := f.Extension(pbfieldmask.E_Option, &opt)
This function would overwrite opt
, so the initialization would lose efficacy.
Fixes #3