Skip to content

Commit ce5e516

Browse files
authored
Merge pull request #161 from Miha-x64/patch-1
Fixed forgotten throw
2 parents a41b3ba + 5224cb3 commit ce5e516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/jsoniter/IterImplString.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static final String readString(JsonIterator iter) throws IOException {
5959
IterImpl.skipFixedBytes(iter, 3);
6060
return null;
6161
}
62-
iter.reportError("readString", "expect string or null, but " + (char) c);
62+
throw iter.reportError("readString", "expect string or null, but " + (char) c);
6363
}
6464
int j = parse(iter);
6565
return new String(iter.reusableChars, 0, j);

0 commit comments

Comments
 (0)