felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r425093 - /incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
Date Mon, 24 Jul 2006 15:27:56 GMT
Author: rickhall
Date: Mon Jul 24 08:27:55 2006
New Revision: 425093

URL: http://svn.apache.org/viewvc?rev=425093&view=rev
Log:
Fixed a bug in the getEntryPaths() enumeration that could lead to a string
index out of bounds exception.

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

Modified: incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java?rev=425093&r1=425092&r2=425093&view=diff
==============================================================================
--- incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
(original)
+++ incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
Mon Jul 24 08:27:55 2006
@@ -44,7 +44,7 @@
             m_path = m_path.substring(1);
         }
         // Add a '/' to the end if not present.
-        if ((m_path.length() > 0) && (m_path.charAt(path.length() - 1) != '/'))
+        if ((m_path.length() > 0) && (m_path.charAt(m_path.length() - 1) != '/'))
         {
             m_path = m_path + "/";
         }



Mime
View raw message