You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2010/03/03 19:47:47 UTC

svn commit: r918623 - /commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java

Author: mbenson
Date: Wed Mar  3 18:47:47 2010
New Revision: 918623

URL: http://svn.apache.org/viewvc?rev=918623&view=rev
Log:
[JXPATH-135] self-evident infinite loop

Modified:
    commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java

Modified: commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java
URL: http://svn.apache.org/viewvc/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java?rev=918623&r1=918622&r2=918623&view=diff
==============================================================================
--- commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java (original)
+++ commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java Wed Mar  3 18:47:47 2010
@@ -49,7 +49,7 @@
      * @return prefix if found
      * @since JXPath 1.3
      */
-    protected static String getPrefix(NodePointer pointer, String namespaceURI) {
+    protected static String getPrefix(final NodePointer pointer, String namespaceURI) {
         NodePointer currentPointer = pointer;
         while (currentPointer != null) {
             NodeIterator ni = currentPointer.namespaceIterator();
@@ -63,7 +63,7 @@
                     }
                 }
             }
-            currentPointer = pointer.getParent();
+            currentPointer = currentPointer.getParent();
         }
         return null;
     }