-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when analyzing source file #418
Comments
SonarQube 4.5.2 |
Thanks for the issue. Can you provide the code snippet which causes this? |
It's a closed source project, so I will have to ask about sharing code. They may say yes. |
We need not the whole code, only a small snippet to reproduce the problem. |
It's one of our "dustier decks", I'm not sure if a small snippet outside the context of the entire file will reproduce the problem. |
Oops I didn't see it. I will have a look. |
@LegalizeAdulthood can you confirm that the NPE happens with an anonymous enumeration, something like: enum {}; |
How do I know which file was being processed when the exception occurs? I tried with the following source code:
This completed without error. From the
So I tried a small |
@LegalizeAdulthood Nice ! |
I can reproduce the problem with an anonymous Is there a way to turn off specific decorators from the |
Ok so you can give a try to #431. I think this is the same problem. |
Sonar claims my file is invalid, but the C++ compiler doesn't have any problems...
The text was updated successfully, but these errors were encountered: