You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2010/03/29 13:54:01 UTC

svn commit: r928735 - /xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RangeToken.java

Author: mrglavas
Date: Mon Mar 29 11:54:01 2010
New Revision: 928735

URL: http://svn.apache.org/viewvc?rev=928735&view=rev
Log:
Fixing a potential NPE in a debug method.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RangeToken.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RangeToken.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RangeToken.java?rev=928735&r1=928734&r2=928735&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RangeToken.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/RangeToken.java Mon Mar 29 11:54:01 2010
@@ -477,8 +477,10 @@ final class RangeToken extends Token imp
 
     void dumpRanges() {
         System.err.print("RANGE: ");
-        if (this.ranges == null)
+        if (this.ranges == null) {
             System.err.println(" NULL");
+            return;
+        }
         for (int i = 0;  i < this.ranges.length;  i += 2) {
             System.err.print("["+this.ranges[i]+","+this.ranges[i+1]+"] ");
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org