Skip to content

Commit

Permalink
Follow-up to #480
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 26, 2024
1 parent 050b7a4 commit 8dd8b53
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,15 @@ public JsonToken nextToken() throws IOException {
System.err.println("\n>>");
*/
}
while ((_currToken = _readContext.nextToken()) == null) {
JsonToken t;
while ((t = _readContext.nextToken()) == null) {
_readContext = _readContext.nextContext();
if (_readContext == null) { // end of content
return null;
return _updateTokenToNull();
}
streamReadConstraints().validateNestingDepth(_readContext.getNestingDepth());
}
return _currToken;
return _updateToken(t);
}

/*
Expand Down

0 comments on commit 8dd8b53

Please sign in to comment.