[
https://issues.apache.org/jira/browse/NETBEANS-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Laszlo Kishalmi resolved NETBEANS-734.
--------------------------------------
Resolution: Fixed
Fix Version/s: 9.0
Marked resolved as the corresponding PR has been merged.
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 9.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> {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 even 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