commit | 6adac071b8a1da89962b804c79d438579164a1c8 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Mon Jul 24 15:27:55 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Mon Jul 24 15:27:55 2006 +0000 |
tree | d19b97aba8561f5b03337c85152582072d5366f9 | |
parent | 0995c932ea104c10441f4be08120f3c31ac14337 [diff] |
Fixed a bug in the getEntryPaths() enumeration that could lead to a string index out of bounds exception. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@425093 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java index 13d5df3..0d7529a 100644 --- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java +++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
@@ -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 + "/"; }