You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Austin Stephens (JIRA)" <ji...@apache.org> on 2018/07/02 19:32:00 UTC

[jira] [Created] (NETBEANS-1019) False positive of "Null Pointer Dereference" when passing a lambda with a null possible result to a non-null argument

Austin Stephens created NETBEANS-1019:
-----------------------------------------

             Summary: False positive of "Null Pointer Dereference" when passing a lambda with a null possible result to a non-null argument
                 Key: NETBEANS-1019
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1019
             Project: NetBeans
          Issue Type: Bug
          Components: java - Hints
    Affects Versions: 9.0, Next
            Reporter: Austin Stephens


Sample code:


{code:java}
    private void func(@NonNull Function<Object, Object> func){
        
    }
    @CheckForNull
    private Object foo(){
        return null;
    }
    private void bar(){
        func(item->foo());//false positive
    }
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists