You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=protobuf-net.Core StackTrace: at ProtoBuf.ExtensibleUtil.<GetExtendedValues>d__1.MoveNext() in C:\Code\protobuf-net\src\protobuf-net.Core\ExtensibleUtil.cs:line 59 at ProtoBuf.ExtensibleUtil.<GetExtendedValues>d__0`1.MoveNext() in C:\Code\protobuf-net\src\protobuf-net.Core\ExtensibleUtil.cs:line 25 at ProtoBuf.Extensible.TryGetValue[TValue](IExtensible instance, Int32 tag, DataFormat format, Boolean allowDefinedTag, TValue& value) in C:\Code\protobuf-net\src\protobuf-net.Core\Extensible.cs:line 178 at ProtoBuf.Reflection.NameNormalizer.GetName(FieldDescriptorProto definition) in C:\Code\protobuf-net\src\protobuf-net.Reflection\NameNormalizer.cs:line 189 at ProtoBuf.Reflection.CSharpCodeGenerator.WriteField(GeneratorContext ctx, FieldDescriptorProto field, Object& state, OneOfStub[] oneOfs) in C:\Code\protobuf-net\src\protobuf-net.Reflection\CSharpCodeGenerator.cs:line 621 at ProtoBuf.Reflection.CommonCodeGenerator.WriteMessage(GeneratorContext ctx, DescriptorProto message) in C:\Code\protobuf-net\src\protobuf-net.Reflection\CodeGenerator.cs:line 278 at ProtoBuf.Reflection.CommonCodeGenerator.WriteFile(GeneratorContext ctx, FileDescriptorProto file) in C:\Code\protobuf-net\src\protobuf-net.Reflection\CodeGenerator.cs:line 180 at ProtoBuf.Reflection.CommonCodeGenerator.<Generate>d__16.MoveNext() in C:\Code\protobuf-net\src\protobuf-net.Reflection\CodeGenerator.cs:line 163 at ProtobufGen.Program.Run(Options arguments) in D:\Users\Yaakov\Development\SteamKit\Resources\ProtobufGen\ProtobufGen\Program.cs:line 73 at ProtobufGen.Program.Main(String[] args) in D:\Users\Yaakov\Development\SteamKit\Resources\ProtobufGen\ProtobufGen\Program.cs:line 22
This seems to be because TypeModel.DefaultModel is never initialized.
It seems to only ever be initialized by protobuf-net's RuntimeTypeModel, but attempting to use that from the new 3.0.0-alpha.174 package only results in MissingMethodExceptions, since the API surface of the various protobuf-net v3 packages don't seem to align.
The text was updated successfully, but these errors were encountered:
Null reference occurs here: https://github.com/protobuf-net/protobuf-net/blob/master/src/protobuf-net.Core/ExtensibleUtil.cs#L59
Full details:
This seems to be because
TypeModel.DefaultModel
is never initialized.It seems to only ever be initialized by protobuf-net's RuntimeTypeModel, but attempting to use that from the new 3.0.0-alpha.174 package only results in MissingMethodExceptions, since the API surface of the various protobuf-net v3 packages don't seem to align.
The text was updated successfully, but these errors were encountered: