You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/23 10:29:15 UTC

[jira] [Resolved] (FLEX-28530) mx:DateValidator crash when property allowedFormatChars is null

     [ https://issues.apache.org/jira/browse/FLEX-28530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean resolved FLEX-28530.
----------------------------------

    Resolution: Fixed

Unable to reproduce but easy to add guard to stop RTE. Checked into Apache Flex 4.10.0 develop branch.
                
> mx:DateValidator crash when property allowedFormatChars is null
> ---------------------------------------------------------------
>
>                 Key: FLEX-28530
>                 URL: https://issues.apache.org/jira/browse/FLEX-28530
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Validators
>    Affects Versions: Adobe Flex SDK 4.5.1 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>
> When property "allowedFormatChars" not specified at MXML code of mx:DateValidator then function validateDate will crash at 162 line of DateValidator.as
> Steps to reproduce:
> 1. <mx:DateValidator id="dateReportValidator" source="{dateReport}" required="true" property="selectedDate"/>
> 2. dateReportValidator.validate();
>  
>  Actual Results:
> TypeError: Error #1009: Cannot access a property or method of a null object reference
> at mx.validators::DateValidator$/validateDate()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\validators\DateValidator.as:162]
> 	at mx.validators::DateValidator/doValidation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\validators\DateValidator.as:1404]
> 	at mx.validators::Validator/processValidation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\validators\Validator.as:1012]
> 	at mx.validators::Validator/validate()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\validators\Validator.as:945]
>  
>  Expected Results:
>  Don't check for invalidFormatChars or remind at compile that property "allowedFormatChars" is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira