[ https://issues.apache.org/jira/browse/FLEX-14804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-14804. ---------------------------------- Resolution: Fixed Fix Version/s: Apache Flex 4.10.0 No longer an issue > DateField throws RTE when selecting the calendar icon when editable is set to > true and the text value is empty > -------------------------------------------------------------------------------------------------------------- > > Key: FLEX-14804 > URL: https://issues.apache.org/jira/browse/FLEX-14804 > Project: Apache Flex > Issue Type: Bug > Components: mx: DateField > Affects Versions: Adobe Flex SDK 3.0 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Browser: Other (specify version) > Language Found: English > Reporter: Adobe JIRA > Labels: easytest > Fix For: Apache Flex 4.10.0 > > > Steps to reproduce: > 1. Create a datefield with enabled and editable set to true ex: <mx:DateField > x="476" y="143" width="123" id="search_date" color="#0B333C" editable="true" > enabled="true"/> > 2. Click the calendar icon next to the field in the compiled app > > Actual Results: > RTE is thrown the first time the icon is clicked. After the first RTE the > error no longer occurs unless the app is reloaded. > The contents of the error: > TypeError: Error #1009: Cannot access a property or method of a null object > reference. > at > mx.controls::DateField$/stringToDate()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DateField.as:445] > at > mx.controls::DateField/displayDropdown()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DateField.as:2117] > at Function/http://adobe.com/AS3/2006/builtin::apply() > at > mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] > at > mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] > > Expected Results: > Calendar appears to select a date > > Workaround (if any): > In the text property place a single space. > ex: <mx:DateField x="476" y="143" width="123" id="search_date" > color="#0B333C" editable="true" enabled="true" text=" "/> > > Browsers: > I have tested the bug in Firefox 3 and Internet Explorer 7 -- 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