You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "vikas kumar prabhakar (JIRA)" <ji...@apache.org> on 2018/07/25 08:21:00 UTC
[jira] [Resolved] (NETBEANS-1019) False positive of "Null Pointer
Dereference" when passing a lambda with a null possible result to a
non-null argument
[ https://issues.apache.org/jira/browse/NETBEANS-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
vikas kumar prabhakar resolved NETBEANS-1019.
---------------------------------------------
Resolution: Fixed
> 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
> Assignee: vikas kumar prabhakar
> Priority: Major
>
> 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