Skip to content

Commit 8de137d

Browse files
committed
Merge branch '2.18'
2 parents 4d3016a + 8dd8b53 commit 8de137d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

properties/src/main/java/tools/jackson/dataformat/javaprop/JavaPropsParser.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,15 @@ public JsonToken nextToken() throws JacksonException {
199199
System.err.println("\n>>");
200200
*/
201201
}
202-
while ((_currToken = _streamReadContext.nextToken()) == null) {
202+
JsonToken t;
203+
while ((t = _streamReadContext.nextToken()) == null) {
203204
_streamReadContext = _streamReadContext.nextContext();
204205
if (_streamReadContext == null) { // end of content
205-
return null;
206+
return _updateTokenToNull();
206207
}
207-
_streamReadConstraints.validateNestingDepth(_streamReadContext.getNestingDepth());
208+
streamReadConstraints().validateNestingDepth(_streamReadContext.getNestingDepth());
208209
}
209-
return _currToken;
210+
return _updateToken(t);
210211
}
211212

212213
@Override

0 commit comments

Comments
 (0)