felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r379790 - /incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
Date Wed, 22 Feb 2006 15:22:44 GMT
Author: rickhall
Date: Wed Feb 22 07:22:41 2006
New Revision: 379790

URL: http://svn.apache.org/viewcvs?rev=379790&view=rev
Log:
Fixed an array indexing problem that could lead to a null pointer exception.

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

Modified: incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
URL: http://svn.apache.org/viewcvs/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java?rev=379790&r1=379789&r2=379790&view=diff
==============================================================================
--- incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
(original)
+++ incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
Wed Feb 22 07:22:41 2006
@@ -665,9 +665,9 @@
                     wire = new R4Wire(
                         module, candidate,
                         Util.getExportPackage(candidate, impMatch.getName()));
-                    newWires[wires.length] = wire;
+                    newWires[newWires.length - 1] = wire;
                     setWires(module, newWires);
-m_logger.log(Logger.LOG_DEBUG, "WIRE: [" + module + "] " + newWires[wires.length]);
+m_logger.log(Logger.LOG_DEBUG, "WIRE: [" + module + "] " + newWires[newWires.length - 1]);
                 }
             }
         }



Mime
View raw message