incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject svn commit: r1299569 - /incubator/flex/whiteboard/jmclean/validators/src/mx/validators/PostCodeValidator.as
Date Mon, 12 Mar 2012 07:14:51 GMT
Author: jmclean
Date: Mon Mar 12 07:14:51 2012
New Revision: 1299569

URL: http://svn.apache.org/viewvc?rev=1299569&view=rev
Log:
added check to catch RTE if validator was null

Modified:
    incubator/flex/whiteboard/jmclean/validators/src/mx/validators/PostCodeValidator.as

Modified: incubator/flex/whiteboard/jmclean/validators/src/mx/validators/PostCodeValidator.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/jmclean/validators/src/mx/validators/PostCodeValidator.as?rev=1299569&r1=1299568&r2=1299569&view=diff
==============================================================================
--- incubator/flex/whiteboard/jmclean/validators/src/mx/validators/PostCodeValidator.as (original)
+++ incubator/flex/whiteboard/jmclean/validators/src/mx/validators/PostCodeValidator.as Mon
Mar 12 07:14:51 2012
@@ -428,11 +428,12 @@ public class PostCodeValidator extends V
 		var errors:Array = [];
         var results:Array = [];
 
-		if (validator)
+		if (!validator)
 		{
-			numberFormats = validator.formats.length
+			return [];
 		}
-		
+
+		numberFormats = validator.formats.length;
 		for (var formatIndex:int = 0; formatIndex < numberFormats; formatIndex++)
 		{	
 			var error:Object = validator.checkPostCodeFormat(postCode,



Mime
View raw message