You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/04/23 10:31:03 UTC
git commit: [flex-sdk] - FLEX-28530 stop RTE when allowedFormatChars
is null
Updated Branches:
refs/heads/develop 2e9f7bd9b -> 906d35dad
FLEX-28530 stop RTE when allowedFormatChars is null
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/906d35da
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/906d35da
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/906d35da
Branch: refs/heads/develop
Commit: 906d35dad9034712f54da71244d87bdca6a61af4
Parents: 2e9f7bd
Author: Justin Mclean <jm...@apache.org>
Authored: Tue Apr 23 18:30:42 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Tue Apr 23 18:30:42 2013 +1000
----------------------------------------------------------------------
.../framework/src/mx/validators/DateValidator.as | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/906d35da/frameworks/projects/framework/src/mx/validators/DateValidator.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/validators/DateValidator.as b/frameworks/projects/framework/src/mx/validators/DateValidator.as
index 5e491ff..e4fb987 100644
--- a/frameworks/projects/framework/src/mx/validators/DateValidator.as
+++ b/frameworks/projects/framework/src/mx/validators/DateValidator.as
@@ -167,7 +167,10 @@ public class DateValidator extends Validator
var i:int;
var temp:String;
- n = allowedFormatChars.length;
+
+ if (allowedFormatChars != null)
+ n = allowedFormatChars.length;
+
for (i = 0; i < n; i++)
{
if (DECIMAL_DIGITS.indexOf(allowedFormatChars.charAt(i)) != -1)