We're updating the issue view to help you get more done. 

NullPointerException in AbstractDeployerMojo

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!

Status

Assignee

Savas Ali Tokmen

Reporter

Jochen Ehret

Components

Fix versions

Affects versions

1.0

Priority

Minor