felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r947635 - /felix/trunk/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
Date Mon, 24 May 2010 13:26:16 GMT
Author: ffang
Date: Mon May 24 13:26:16 2010
New Revision: 947635

URL: http://svn.apache.org/viewvc?rev=947635&view=rev
Log:
[FELIX-2354]NPE when using Felix features maven validate plugin

Modified:
    felix/trunk/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java

Modified: felix/trunk/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java?rev=947635&r1=947634&r2=947635&view=diff
==============================================================================
--- felix/trunk/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
(original)
+++ felix/trunk/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
Mon May 24 13:26:16 2010
@@ -160,12 +160,14 @@ public class ValidateFeaturesMojo extend
         features.add(repository.getFeatures());
         
         // add the repositories from the plugin configuration
-	for (String uri : repositories) {
-	    getLog().info(String.format(" - adding repository from %s", uri));
-            Repository dependency = new RepositoryImpl(URI.create(translateFromMaven(uri)));
-            features.add(dependency.getFeatures());
-            validateBundlesAvailable(dependency);
-            analyzeExports(dependency);
+        if (repositories != null) {
+        	for (String uri : repositories) {
+        		getLog().info(String.format(" - adding repository from %s", uri));
+        		Repository dependency = new RepositoryImpl(URI.create(translateFromMaven(uri)));
+        		features.add(dependency.getFeatures());
+        		validateBundlesAvailable(dependency);
+        		analyzeExports(dependency);
+        	}
         }
 
         for (URI uri : repository.getRepositories()) {



Mime
View raw message