am 7a4172d1: am f11cc165: Merge "Fixed a possible infinite loop in JsonReader#skipValue()"

* commit '7a4172d190871c6b17124bf86374304cef727984':
  Fixed a possible infinite loop in JsonReader#skipValue()
This commit is contained in:
Calin Juravle
2014-02-19 11:21:58 +00:00
committed by Android Git Automerger

View File

@@ -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();