mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
JsonParser should return null instead of JsonToken.NOT_AVAILABLE to avoid triggering a false error
This commit is contained in:
@@ -325,7 +325,7 @@ public class JsonParserImpl implements JsonParser {
|
|||||||
@Override
|
@Override
|
||||||
public JsonToken nextToken() throws IOException {
|
public JsonToken nextToken() throws IOException {
|
||||||
if (tokens.isEmpty()) {
|
if (tokens.isEmpty()) {
|
||||||
return JsonToken.NOT_AVAILABLE;
|
return null;
|
||||||
}
|
}
|
||||||
text = null;
|
text = null;
|
||||||
_numTypesValid = NR_UNKNOWN;
|
_numTypesValid = NR_UNKNOWN;
|
||||||
|
|||||||
Reference in New Issue
Block a user