mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 18:55:30 +08:00
Adds check for EOF
This commit is contained in:
@@ -448,7 +448,9 @@ public class JSONTokener {
|
|||||||
sb.append(c);
|
sb.append(c);
|
||||||
c = this.next();
|
c = this.next();
|
||||||
}
|
}
|
||||||
this.back();
|
if (!this.eof) {
|
||||||
|
this.back();
|
||||||
|
}
|
||||||
|
|
||||||
string = sb.toString().trim();
|
string = sb.toString().trim();
|
||||||
if ("".equals(string)) {
|
if ("".equals(string)) {
|
||||||
|
Reference in New Issue
Block a user