Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7880

NullPointerException in org.apache.cxf.maven_plugin.Java2WSMojo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.5, 3.2.6
    • None
    • Tooling
    • None
    • Unknown

    Description

      In version 3.2.5 a classifier check was introduced in the if clause, in line 471 as of version 3.2.6:

      classifier.equals(a.getClassifier())

      but without null pointer protection, causing an NPE if classifier is null. classifier is expected to sometimes be null as the present check in line 476 (just 5 lines below) demonstrates. The above clause could be rewritten as e.g.:
      Objects.equals(classifier, a.getClassifier())

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              domagoj Domagoj Cosic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: