Skip to content

Commit

Permalink
2020-08-28T01:41
Browse files Browse the repository at this point in the history
  • Loading branch information
kenta-shimizu committed Aug 27, 2020
1 parent 1a4fce2 commit c72a251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/shimizukenta/jsonhub/JsonHubJsonParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public AbstractJsonHub parse(CharSequence cs) {
String s = cs.toString();

if ( s.trim().isEmpty() ) {
new JsonHubParseException("JSON is empty");
throw new JsonHubParseException("JSON is empty");
}

return fromJson(cs.toString());
return fromJson(s);
}
catch ( JsonHubIndexOutOfBoundsException | JsonHubNumberFormatException e ) {
throw new JsonHubParseException(e);
Expand Down

0 comments on commit c72a251

Please sign in to comment.