-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught NPE when parsing a header value #574
Comments
Thanks for the report. |
@laglangyue would you have time to do a PR? |
@pjfanning yes, I am designing some tests to reproduce errors and make modifications |
Use the getMessage if it is not null even if NullPointerException has changed in Java 17. We support Java 8+. |
I'd like to see the fix backported to the 1.0.x branch. |
PRs merged to main and 1.0.x branches |
I'm using Akka 10.2.9, but the issue (as in, broken error handling) doesn't seem to have been fixed in Pekko as well. Sorry I don't have a reproduction example at this moment, I'm creating this issue to have something to reference when rolling out a patch that will hopefully give me a clue. 😄
I have a piece of code like this:
I expect it to return an
Either
. Instead, for some input values it seems to throw the following exception:It seems that there is an exception raised somewhere inside the parser that doesn't have its message set. Here we do
.getMessage
, passingnull
intoErrorInfo.fromCompoundString
. It tries to split it, and we get an NPE.The text was updated successfully, but these errors were encountered: