-
Notifications
You must be signed in to change notification settings - Fork 2k
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
False negative with NPE #507
Comments
@martinoluca here is the NPE I was mentioning to you at the droidcon |
Infer filters out NPEs based on a heuristic. |
ok thanks. but why if I add the |
With the |
thanks for your answers even still do not understand why on |
Hi all,
I received a NPE on my app. analysing the code it look like it was a very stupid piece of code I wrote. I was interesting in knowing why Infer did not notice it for me even if it looked like an obvious NPE. here is a simplified example that Infer 0.9.4 is not able to detect. my question may be related to this one #500 but I'll leave that to you (
infer -a eradicate
detects it).here is the code. funny part is that the NPE is detected if I remove the if statements, which anyway should not change anything. Thanks!
The text was updated successfully, but these errors were encountered: