1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Adds check for EOF

This commit is contained in:
John J. Aylward 2018-12-10 11:45:53 -05:00
parent fea0aca2ab
commit 19e9bb6c07

View file

@ -448,7 +448,9 @@ public class JSONTokener {
sb.append(c);
c = this.next();
}
this.back();
if (!this.eof) {
this.back();
}
string = sb.toString().trim();
if ("".equals(string)) {