am 78f522d1: am 7a4172d1: am f11cc165: Merge "Fixed a possible infinite loop in JsonReader#skipValue()"
* commit '78f522d16e6e0305c61d13d8ca5dd75c792420c8': Fixed a possible infinite loop in JsonReader#skipValue()
This commit is contained in:
@@ -546,6 +546,9 @@ public final class JsonReader implements Closeable {
|
||||
public void skipValue() throws IOException {
|
||||
skipping = true;
|
||||
try {
|
||||
if (!hasNext() || peek() == JsonToken.END_DOCUMENT) {
|
||||
throw new IllegalStateException("No element left to skip");
|
||||
}
|
||||
int count = 0;
|
||||
do {
|
||||
JsonToken token = advance();
|
||||
|
||||
Reference in New Issue
Block a user