File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
src/main/java/com/jsoniter Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 33 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
44 <modelVersion >4.0.0</modelVersion >
55 <groupId >com.jsoniter</groupId >
6- <version >0.9.22 </version >
6+ <version >0.9.23-SNAPSHOT </version >
77 <artifactId >jsoniter</artifactId >
88 <name >json iterator</name >
99 <description >jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go</description >
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ private Any fillCacheUntil(int target) {
172172 if (lastParsedPos == head ) {
173173 if (!CodegenAccess .readArrayStart (iter )) {
174174 lastParsedPos = tail ;
175- return null ;
175+ throw new IndexOutOfBoundsException () ;
176176 }
177177 Any element = iter .readAny ();
178178 cache .add (element );
@@ -206,7 +206,11 @@ private class LazyIterator implements Iterator<Any> {
206206
207207 public LazyIterator () {
208208 index = 0 ;
209- next = fillCacheUntil (index );
209+ try {
210+ next = fillCacheUntil (index );
211+ } catch (IndexOutOfBoundsException e ) {
212+ next = null ;
213+ }
210214 }
211215
212216 @ Override
Original file line number Diff line number Diff line change 1111import java .io .IOException ;
1212
1313/**
14- * byte[] <=> base64
14+ * byte[] <=> base64
1515 */
1616public class Base64Support {
1717 private static boolean enabled ;
You can’t perform that action at this time.
0 commit comments