mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -04:00
Adds check for EOF
This commit is contained in:
parent
fea0aca2ab
commit
19e9bb6c07
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user