commit | 5a1baf00495bd441bd3129699c4afdb810b68b1d | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Jul 20 08:02:42 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Jul 20 08:02:42 2006 +0000 |
tree | 72e2334e8c898ab5e0392669e77910af6e0e40b1 | |
parent | 826994227b4aa2b3ea6cd03097fd1e19ad58d3df [diff] |
Fixed a bug that could lead to a null pointer exception. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@423815 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java index 16cef73..44539ba 100644 --- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java +++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -2022,7 +2022,9 @@ synchronized (m_uninstalledBundlesLock_Priority3) { - for (int i = 0; i < m_uninstalledBundles.length; i++) + for (int i = 0; + (m_uninstalledBundles != null) && (i < m_uninstalledBundles.length); + i++) { if (m_uninstalledBundles[i].getInfo().getBundleId() == id) {