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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to