commit | 9eb62551fbc9a258b1940f57c4fbc5f9fcbdd985 | [log] [tgz] |
---|---|---|
author | Karl Pauls <pauls@apache.org> | Wed Jul 11 14:58:35 2007 +0000 |
committer | Karl Pauls <pauls@apache.org> | Wed Jul 11 14:58:35 2007 +0000 |
tree | ea06ff5be3e0b248d1258fd42a521bd5800b2f54 | |
parent | 3a66ebc8082e189d2884bc757408fc6d416d2c1c [diff] |
Apply patch to fix a NPE in manifest goal (FELIX-326). git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@555293 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java index 41e8780..bdba885 100644 --- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java +++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java
@@ -111,9 +111,12 @@ if ( project.getArtifact().getFile() == null ) { - throw new NullPointerException( "Artifact file is null" ); + analyzer.setJar( getOutputDirectory() ); } - analyzer.setJar( project.getArtifact().getFile() ); + else + { + analyzer.setJar( project.getArtifact().getFile() ); + } if ( classpath != null ) analyzer.setClasspath( classpath );