getResources() was incorrectly ignoring dynamic imports. (FELIX-1556)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@811031 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java b/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
index 7d4f2a9..d84722c 100644
--- a/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
+++ b/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
@@ -898,7 +898,7 @@
         // return it together with the results from the other searches else
         // try to look into the dynamic imports.
         urls = getResourcesLocal(name);
-        if (urls != null)
+        if ((urls != null) && (urls.hasMoreElements()))
         {
             completeUrlList.add(urls);
         }