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

NullPointerException in org.apache.cxf.maven_plugin.Java2WSMojo

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.5, 3.2.6
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: