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
This is a known issue because Infer doesn't model invocation of class initializers (where the implicit assignment to null happens). Modeling class initializers correctly is tricky and can cause noise, so we do not bother with it.
For fully exhaustive checking of NPE related issues that will detect this case, I recommend you give Eradicate (infer -a eradicate) a try.
Analyze the following class:
NPE is not detected. If you execute the program it will throw java.lang.NullPointerException.
The text was updated successfully, but these errors were encountered: