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 e1f3f19 commit 1a4fce2Copy full SHA for 1a4fce2
src/main/java/com/shimizukenta/jsonhub/JsonHubJsonParser.java
@@ -30,6 +30,13 @@ public static JsonHubJsonParser getInstance() {
30
public AbstractJsonHub parse(CharSequence cs) {
31
32
try {
33
+
34
+ String s = cs.toString();
35
36
+ if ( s.trim().isEmpty() ) {
37
+ new JsonHubParseException("JSON is empty");
38
+ }
39
40
return fromJson(cs.toString());
41
}
42
catch ( JsonHubIndexOutOfBoundsException | JsonHubNumberFormatException e ) {
0 commit comments