When the resource processor gets a resource that contains no Designates, which might be a bit strange but is allowed according to the spec, the processor throws a NPE, when it should just not do any processing. This change does just that, and logs the fact that there are no Designates.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1061781 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java b/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java
index d34375b..980c090 100644
--- a/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java
+++ b/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java
@@ -100,6 +100,11 @@
 
 	   // process resources
 	   Map designates = data.getDesignates();
+	   if (designates == null) {
+	       // if there are no designates, there's nothing to process
+	       m_log.log(LogService.LOG_INFO, "No designates found in the resource, so there's nothing to process.");
+	       return;
+	   }
 	   Map localOcds = data.getObjectClassDefinitions();
 	   Iterator i = designates.keySet().iterator();
 	   while (i.hasNext()) {