Author: stefanegli Date: Mon May 26 07:32:35 2014 New Revision: 1597523 URL: http://svn.apache.org/r1597523 Log: no-jira : null pointer check
Modified: sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java Modified: sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java?rev=1597523&r1=1597522&r2=1597523&view=diff ============================================================================== --- sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java (original) +++ sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java Mon May 26 07:32:35 2014 @@ -88,6 +88,9 @@ public class EmbeddedArchetypeInstaller } public void addResource(String fileExtension, URL origin) throws IOException { + if (origin==null) { + throw new IllegalArgumentException("origin must not be null"); + } origins.put(fileExtension, origin.openStream()); }