Austin Stephens created NETBEANS-734:
----------------------------------------
Summary: False positive of possible null pointer derefernce in
catch
Key: NETBEANS-734
URL: https://issues.apache.org/jira/browse/NETBEANS-734
Project: NetBeans
Issue Type: Bug
Components: java - Source
Affects Versions: 9.0
Reporter: Austin Stephens
{code:java}
private void someMethod(){}
private void falsePositive(){
try{
someMethod();
}
catch(RuntimeException e){
if (e instanceof NullPointerException){
throw e;
}
//false positive for possible null pointer
Throwable cause = e.getCause();
}
}
{code}
Is it event possible for e to be null?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists