Skip to content

Commit

Permalink
handle case when token is set to null
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jun 8, 2024
1 parent edc7f45 commit 08012cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ protected final void _wrapError(String msg, Throwable t) throws JsonParseExcepti

protected final JsonToken _updateToken(final JsonToken token) {
_currToken = token;
if (token != JsonToken.NOT_AVAILABLE) {
if (token != null && token != JsonToken.NOT_AVAILABLE) {
++_tokenCount;
}
return token;
Expand Down

0 comments on commit 08012cb

Please sign in to comment.