Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-1220

NPE in DiagnosisUtils

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.1
    • Plugins and Lifecycle
    • None

    Description

      org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique() throws an NPE if the exception message is null [line 89: if ( rootMsg != null && error.getMessage().indexOf( rootMsg ) < 0 )]

      The attached patch simply adds the error.getMessage() != null check

      Attachments

        1. diagnosisUtilsNPE.diff
          0.8 kB
          Fabrizio Giustina

        Issue Links

          Activity

            People

              brett Brett Porter
              fgiust Fabrizio Giustina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: