File tree 1 file changed +3
-1
lines changed
src/main/java/com/fasterxml/jackson/databind/util
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import com .fasterxml .jackson .core .*;
9
9
import com .fasterxml .jackson .core .base .ParserMinimalBase ;
10
+ import com .fasterxml .jackson .core .io .JsonEOFException ;
10
11
import com .fasterxml .jackson .core .io .NumberInput ;
11
12
import com .fasterxml .jackson .core .json .JsonWriteContext ;
12
13
import com .fasterxml .jackson .core .util .ByteArrayBuilder ;
@@ -1161,7 +1162,8 @@ public void copyCurrentStructure(JsonParser p) throws IOException
1161
1162
t = p .nextToken ();
1162
1163
// fall-through to copy the associated value
1163
1164
} else if (t == null ) {
1164
- throw new IllegalStateException ("No token available from argument `JsonParser`" );
1165
+ // 13-Dec-2024, tatu: For some unexpected EOF cases we may end up here, so:
1166
+ throw new JsonEOFException (p , null , "Unexpected end-of-input" );
1165
1167
}
1166
1168
1167
1169
// We'll do minor handling here to separate structured, scalar values,
You can’t perform that action at this time.
0 commit comments