felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r423815 - /incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
Date Thu, 20 Jul 2006 08:02:45 GMT
Author: rickhall
Date: Thu Jul 20 01:02:42 2006
New Revision: 423815

URL: http://svn.apache.org/viewvc?rev=423815&view=rev
Log:
Fixed a bug that could lead to a null pointer exception.

Modified:
    incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java

Modified: incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java?rev=423815&r1=423814&r2=423815&view=diff
==============================================================================
--- incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
(original)
+++ incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
Thu Jul 20 01:02:42 2006
@@ -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)
                 {



Mime
View raw message