Skip to content

Commit 8dd8b53

Browse files
committed
Follow-up to #480
1 parent 050b7a4 commit 8dd8b53

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

properties/src/main/java/com/fasterxml/jackson/dataformat/javaprop/JavaPropsParser.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,15 @@ public JsonToken nextToken() throws IOException {
239239
System.err.println("\n>>");
240240
*/
241241
}
242-
while ((_currToken = _readContext.nextToken()) == null) {
242+
JsonToken t;
243+
while ((t = _readContext.nextToken()) == null) {
243244
_readContext = _readContext.nextContext();
244245
if (_readContext == null) { // end of content
245-
return null;
246+
return _updateTokenToNull();
246247
}
247248
streamReadConstraints().validateNestingDepth(_readContext.getNestingDepth());
248249
}
249-
return _currToken;
250+
return _updateToken(t);
250251
}
251252

252253
/*

0 commit comments

Comments
 (0)