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

Merge pull request #452 from johnjaylward/FixEOF

Adds check for EOF
This commit is contained in:
Sean Leary 2018-12-13 09:14:10 -06:00 committed by GitHub
commit 12bbe8cd9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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