Replies: 1 comment
-
Hi @ypypy28! Thanks SO much for reading the README first, I really appreciate it 😄. And thanks for creating the discussion! I agree with you that this can be made cleaner, but it does not appear to be a current bug within JJWT: there is no path in the codebase (verified with static analysis and test cases) that would ever pass Excluding test code, the only time the and the That said, if you'd like to create a pull request with the desired change (and an associated test case), I'd be happy to accept it because it is indeed cleaner/simpler and prevents any potential NPE that might arise in the future! Thank you! 🙏 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've read in the README that before making code related PR's I must create a discussion about it. So this is it.
File:
jjwt/impl/src/main/java/io/jsonwebtoken/impl/security/EdwardsCurve.java
The bug is simple. Method findByKey which is called under the hood can return null, and then calling
equals
on null will cause NullPointerExceptionI suggest changing return statement to
equals
method of AbstractCurve class, which EdwardsCurve is extending, can successfully handle null as an argument.Beta Was this translation helpful? Give feedback.
All reactions