Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1480

NetBeans shows NPE warning even after nonNull check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      NetBeans shows warning "Dereferencing possible null pointer" even "java.util.Objects.nonNull" check is applied in the 'If' condition. 

      If condition is replaced with "var != null" then no warning are shown.

       

       

      Attachments

        1. NonNull1.png
          10 kB
          Gaurav Gupta

        Activity

          People

            Unassigned Unassigned
            jgauravgupta Gaurav Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: