Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
NullPointerException in JSON codec parsing stream encoded with Jackson Smile #24009
Using Spring 5.1.11, Spring Boot 2.1.10, Jackson 2.10.1, but it was there in previous versions as well.
There seems to be an issue in Spring Web with #20699, streaming Smile encoded data.
I'm trying to receive a stream of objects created by Spring WebFlux app as
With Smile most of the time I get
It seems that current token of parser passed to
I'm trying now to understand how exactly does it happen but decided to raise the issue anyway.
Unfortunately it's not the easiest one to debug as it goes away if you slow it down, which probably suggests that the problem manifests itself when there's no input available to process as next array element is not received yet.
After some digging through the stack trace, it seems like the null pointer occurs at this line: https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/util/TokenBuffer.java#L1037.
So it's not the token that is null, nor the
Obviously we can check whether the parser has a current token with