commit | 093dd89489ca64152e91e578921b9f1a5cc8edae | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Sep 03 17:01:11 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Sep 03 17:01:11 2009 +0000 |
tree | 400579e009dab39197f412896fcb495beb2fae16 | |
parent | 9602c2c5a9ae57174ed675010b4a7d804db6a140 [diff] |
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); }