commit | e2c6dc75d26136c9b7d869f0ad7d1c380ca9bc37 | [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 | 588dc430f51c8ea1ef8a0439acdd76b00994d33a [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); }