flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-25617 FLEX-20117 Fix RTE when no errors and accessing message
Date Tue, 14 May 2013 02:46:29 GMT
Updated Branches:
  refs/heads/develop 8133e4ffd -> e1649ef1a


FLEX-25617 FLEX-20117 Fix RTE when no errors and accessing message


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/e1649ef1
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/e1649ef1
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/e1649ef1

Branch: refs/heads/develop
Commit: e1649ef1a28766647885c7ad2e61bd29a56778a1
Parents: 8133e4f
Author: Justin Mclean <jmclean@apache.org>
Authored: Tue May 14 12:45:16 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Tue May 14 12:45:16 2013 +1000

----------------------------------------------------------------------
 .../src/mx/events/ValidationResultEvent.as         |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e1649ef1/frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/events/ValidationResultEvent.as b/frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
index f449f8d..f4e83b9 100644
--- a/frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
+++ b/frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
@@ -183,9 +183,12 @@ public class ValidationResultEvent extends Event
 	 */
     public function get message():String
     {
-        var msg:String = "";;
-        
-		var n:int = results.length;
+        var msg:String = "";
+		var n:int;
+		
+		if (results)
+			n = results.length;
+		
 		for (var i:int = 0; i < n; ++i)
         {
 			if (results[i].isError)


Mime
View raw message