Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adds check for EOF
  • Loading branch information
John J. Aylward committed Dec 10, 2018
commit 19e9bb6c07f026e2377521c3b144c66d13612b8d
4 changes: 3 additions & 1 deletion JSONTokener.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ public Object nextValue() throws JSONException {
sb.append(c);
c = this.next();
}
this.back();
if (!this.eof) {
this.back();
}

string = sb.toString().trim();
if ("".equals(string)) {
Expand Down