commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1441677 - /commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java
Date Sat, 02 Feb 2013 01:15:34 GMT
Author: sebb
Date: Sat Feb  2 01:15:34 2013
New Revision: 1441677

URL: http://svn.apache.org/viewvc?rev=1441677&view=rev
Log:
Fix potential NPE error

Modified:
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java

Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java?rev=1441677&r1=1441676&r2=1441677&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java
(original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java
Sat Feb  2 01:15:34 2013
@@ -277,6 +277,7 @@ public class RegexValidatorTest extends 
             } else {
                 fail(label + " Null expect=" + expect + " result=" + result);
             }
+            return; // not strictly necessary, but prevents possible NPE below
         }
 
         // Check Length



Mime
View raw message