Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: 1.0
    • Fix versions: 1.0.2
    • Components: Maven2/Maven3
    • Labels:
      None

      Description

      The cargo-maven2-plugin can raise a NullPointerException if its configuration contains a <deployer> element, but no <deployables> element:

      <plugin>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
      <configuration>
      <deployer>
      </deployer>
      </configuration>
      </plugin>

      The Exception is raised in line 97 of AbstractDeployerMojo.java:

      for (int i = 0; i < getDeployerElement().getDeployables().length; i++)

      getDeployerElement() is checked for null. Can you please also check if getDeployables() returns null?

      Thanks a lot for the fix!

        Attachments

          Activity

            People

            • Assignee:
              savasalitokmen Savas Ali Tokmen (Inactive)
              Reporter:
              jochenehret Jochen Ehret (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: