Skip to content

Commit c510e7b

Browse files
committed
Fix stupid bug AGAIN
I missed a bang!
1 parent 9a76ae5 commit c510e7b

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/github/fge/jsonschema/process

1 file changed

+1
-1
lines changed

src/main/java/com/github/fge/jsonschema/process/Index.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private static JsonNode readOne(final String input)
137137
final JsonParser parser = MAPPER.getFactory().createParser(reader);
138138
) {
139139
iterator = MAPPER.readValues(parser, JsonNode.class);
140-
if (iterator.hasNextValue())
140+
if (!iterator.hasNextValue())
141141
throw new JsonParseException("no data",
142142
new JsonLocation(reader, 0L, 1, 1));
143143
ret = iterator.nextValue();

0 commit comments

Comments
 (0)