Closed yaroslav-orel closed 6 years ago
Thanks for the issue report and the PR of the fix! There are a few stylistic differences between your changes and the existing code that I'd like to resolve before I merge this (wildcard imports, conditionals without braces). Would you object to me taking care of these items, or would you prefer to apply these yourself?
@sbabcoc not at all. Go ahead and make all the necessary changes
@yaroslav-orel: I used your revisions as the starting point for a more comprehensive fix. Thanks for the submission!
@yaroslav-orel: Release 1.6.1 should be available soon in a Maven archive near you.
GIven test class
Running this test class with testng with ListenerChain applied will cause NPE
This is because Method method reference which is passed to transform() is null and in this case IFactoryAnnotation annotation reference is not null.
Partial stacktrace: