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:
parent
fea0aca2ab
commit
19e9bb6c07
1 changed files with 3 additions and 1 deletions
|
@ -448,7 +448,9 @@ public class JSONTokener {
|
||||||
sb.append(c);
|
sb.append(c);
|
||||||
c = this.next();
|
c = this.next();
|
||||||
}
|
}
|
||||||
|
if (!this.eof) {
|
||||||
this.back();
|
this.back();
|
||||||
|
}
|
||||||
|
|
||||||
string = sb.toString().trim();
|
string = sb.toString().trim();
|
||||||
if ("".equals(string)) {
|
if ("".equals(string)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue