You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the detailed report. Indeed it sounds like a bug. We'd be happy to review a pull request for a fix. It looks like CountedAspect and ObservedAspect also suffer from the same bug.
Describe the bug
Returning null from a method that returns CompletableFuture will result in an NPE in AOP.
Because AOP considers it to be non-null if it is of type CompletionStage. (code)
As a result, the original method did not cause an NPE, but the AOP caused an NPE, so the calling thread was affected.
If you agree, please let me know if I can create a PR.
Environment
To Reproduce
Expected behavior
AOP needs to be aware that values of type CompletionStage can be null.
Also, exceptions raised in AOP should not affect the original method.
Additional context
Add any other context about the problem here, e.g. related issues.
The text was updated successfully, but these errors were encountered: