[FELIX-2354]NPE when using Felix features maven validate plugin

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@947635 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java b/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
index 9611607..dc1fde0 100644
--- a/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
+++ b/karaf/tooling/features-maven-plugin/src/main/java/org/apache/felix/karaf/tooling/features/ValidateFeaturesMojo.java
@@ -160,12 +160,14 @@
         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()) {