Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7098338

FindBugs: Nullcheck of value previously dereferenced

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • jt4.4.1
    • jt4.4.1
    • tools
    • b05
    • b05
    • generic
    • generic
    • Verified

    Description

      RCN: Nullcheck of value previously dereferenced (RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE)

      A value is checked here to see whether it is null, but this value can't be null because it was previously dereferenced and if it were null a null pointer exception would have occurred at the earlier dereference. Essentially, this code and the previous dereference disagree as to whether this value is allowed to be null. Either the check is redundant or the previous dereference is erroneous.

      Nullcheck of value previously dereferenced
         RCN: In class com.sun.javatest.mrep.OptionsPane
         RCN: In class com.sun.javatest.tool.MDIDeskView
         RCN: In class com.sun.javatest.tool.TabDeskView

      Attachments

        Activity

          People

            ersh Mikhail Ershov (Inactive)
            ersh Mikhail Ershov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: