[
https://issues.apache.org/jira/browse/FLEX-25617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-25617.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.10.0
Fixed and checked into develop.
> ValidationResultEvent message property throws exception (EmailValidator)
> ------------------------------------------------------------------------
>
> Key: FLEX-25617
> URL: https://issues.apache.org/jira/browse/FLEX-25617
> Project: Apache Flex
> Issue Type: Bug
> Components: Validators
> Affects Versions: Adobe Flex SDK 4.1 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easyfix, easytest
> Fix For: Apache Flex 4.10.0
>
>
> Steps to reproduce:
> Use this code:
> var validator:EmailValidator = new EmailValidator();
> var message:String = validator.validate("[email protected]", true).message;
>
> Actual Results:
> TypeError: Error #1009: Kan geen eigenschap of methode benaderen
> via een verwijzing naar een object dat null is.
> at mx.events::ValidationResultEvent/get message()
> [E:\dev\4.x\frameworks\projects\framework\
> src\mx\events\ValidationResultEvent.as:180]
>
> Expected Results:
> Message should return an empty String.
>
> Workaround (if any):
> Surround code with check for results different from null.
> if (validator.validate("[email protected]", true).results != null) ...
--
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