JsonParser should return null instead of JsonToken.NOT_AVAILABLE to avoid triggering a false error

This commit is contained in:
Julien Viet
2020-01-29 12:10:52 +01:00
parent abaea60a9e
commit 3f6628b9bb

View File

@@ -325,7 +325,7 @@ public class JsonParserImpl implements JsonParser {
@Override
public JsonToken nextToken() throws IOException {
if (tokens.isEmpty()) {
return JsonToken.NOT_AVAILABLE;
return null;
}
text = null;
_numTypesValid = NR_UNKNOWN;