bmuschko/gradle-cargo-plugin — Issue #8: Gradle fails with NPE if cargo.containerId is not defined
Author: leonard84
Created: 2011-11-17 16:32:35+00:00
State: open

Gradle fails with NPE if cargo.containerId is not defined

The culprit is line 236 in CargoPlugin.groovy that is passing null to LocalContainerTaskMapping.getLocalContainerTaskMappingForContainerId causing an NPE in the TreeMap lookup.

This should be handled without an exception and a warning should be issued that cargo was not configured correctly.