Thanks for the feedback. Unfortunately, your reproducer does not compile. Can you fix it?
In particular, SomeClass is not parameterized in the class declaration (and does not extends/implements anything), while its obviously a parameterized class, looking at doSomething() method signature.
Thanks in advance,
Michael
Sorry, forgot to add something:
Could you also provide the full log of the analysis (maybe in debug mode), so we will be able to see which rule/component raise the NPE?
The Nonnull annotation which you use is also not defined, please provide the fully qualified name.
Unfortunately, I have not been able to reproduce it on my side. Note that I assumed the annotation to be @javax.annotation.Nonnull. On my machine, your example compiles, and passes the analysis without failing, with absolutely all the rules from SonarJava enabled (version 5.9.1.16423).
Could you share the logs of your analysis? It would help to know the full stacktrace associated to the NPE. You may want to run your analysis with debug mode.