We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a76ae5 commit c510e7bCopy full SHA for c510e7b
src/main/java/com/github/fge/jsonschema/process/Index.java
@@ -137,7 +137,7 @@ private static JsonNode readOne(final String input)
137
final JsonParser parser = MAPPER.getFactory().createParser(reader);
138
) {
139
iterator = MAPPER.readValues(parser, JsonNode.class);
140
- if (iterator.hasNextValue())
+ if (!iterator.hasNextValue())
141
throw new JsonParseException("no data",
142
new JsonLocation(reader, 0L, 1, 1));
143
ret = iterator.nextValue();
0 commit comments