Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
Apache Flex 4.11.0
-
None
-
None
-
Win7 Enterprise
Description
Opening a DateField by clicking on the associated 'calendar' icon gives this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls::DateField$/stringToDate()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/mx/src/mx/controls/DateField.as:481]
at mx.controls::DateField/displayDropdown()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/mx/src/mx/controls/DateField.as:2435]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:12495]
at mx.core::UIComponent/callLaterDispatcher()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:12433]
Control in question:
<mx:FormItem label="DOB:">
<mx:DateField id="dob" formatString="YYYY-MM-DD" change="validateForm()" text="
" yearNavigationEnabled="true"/>
</mx:FormItem>
The call to 'validateForm()' enables the 'submit' button for this form when all fields are completed.
Any date of the form YYYY-MM-DD will cause the RTE.
Failure is occurring here:
var monthNames:Array = ResourceManager.getInstance()
.getStringArray("SharedResources", "monthNames");
var noMonths:int = monthNames.length; <-- monthNames is NULL