- changed status to open
SignedJWT.parse gives nullpointerexception when a jwt has a header missing
When upgrading from nimbusds 9.24.3 to 9.25.1 we noticed that one of our tests started failing due to an unexpected NullPointerException when trying to use SignedJWT.parse() on a testcase where the jwt is missing a header. Before this gave us a ParseException as expected. We looked through the change history of the project and found that you changed json parser around the time this happened.
Comments (5)
-
-
Would you post a simple test case or vector, we are unsure how to reproduce this (and there are tests).
-
Running
JWSObject.parse("..");
previously with version 9.23 threwParseException
, but now with version 9.24.4 it throwsjava.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "o" is null
. Haven’t checked intermediate versions. -
Thanks for test vector, there is a fix now: 6662912d
-
- changed status to resolved
Release:
version 9.25.4 (2022-09-27)
- Log in to comment
Thanks for the report!