commit | d55601190e8787c1b868e5d18abbf9cdcece0d76 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Wed Feb 22 15:22:41 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Wed Feb 22 15:22:41 2006 +0000 |
tree | e64a44152bb5b4646c0c3deb211b749b67a9f7fa | |
parent | 3543ca16e5eef739c30c18dff7848f74c3f3725c [diff] |
Fixed an array indexing problem that could lead to a null pointer exception. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@379790 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java index f754b75..74f0919 100755 --- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java +++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
@@ -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]); } } }