-
Notifications
You must be signed in to change notification settings - Fork 295
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
Null if
check and failing function to taken in account
#943
Comments
Hi @sdeleuze thanks for the report; we can add support for this case. As a workaround, if you have a https://github.com/uber/NullAway/pull/945/files Maybe that is not an option here for performance reasons? |
Thanks, the main reason why I don't have a workaround here is that |
Fixes #943 We extend `ContractHandler` to insert an unconditional `throw` into the CFG when encountering a method that fails unconditionally according to its `@Contract` annotation.
Code with
if (obj == null)
and a failing function seems not taken in account properly.With
Generates this irrelevant error:
The text was updated successfully, but these errors were encountered: