We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 607b058 + b2a6ca6 commit a82e734Copy full SHA for a82e734
protobuf/src/main/java/com/fasterxml/jackson/dataformat/protobuf/ProtobufParser.java
@@ -736,6 +736,10 @@ private JsonToken _handleNestedKey(int tag) throws IOException
736
if ((_currentField == null) || (f = _currentField.nextOrThisIf(id)) == null) {
737
f = _currentMessage.field(id);
738
}
739
+ // Note: may be null; if so, value needs to be skipped
740
+ if (f == null) {
741
+ return _skipUnknownField(id, wireType);
742
+ }
743
_parsingContext.setCurrentName(f.name);
744
if (!f.isValidFor(wireType)) {
745
_reportIncompatibleType(f, wireType);
0 commit comments