You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "jon yeargers (JIRA)" <ji...@apache.org> on 2013/12/03 21:46:37 UTC
[jira] [Resolved] (FLEX-33975) Crash when opening DateField
[ https://issues.apache.org/jira/browse/FLEX-33975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jon yeargers resolved FLEX-33975.
---------------------------------
Resolution: Not A Problem
Adding '-locale=en_US' to the compiler argument list and adding the corresponding empty folder 'locale/en_US' to the project path clears this up.
Given that this is a departure from whence I upgrade (4.5? earlier) maybe it should be in the release notes or available as a lookup somewhere.
> Crash when opening DateField
> ----------------------------
>
> Key: FLEX-33975
> URL: https://issues.apache.org/jira/browse/FLEX-33975
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: DateField
> Affects Versions: Apache Flex 4.11.0
> Environment: Win7 Enterprise
> Reporter: jon yeargers
>
> 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="{subjdata.DOB}" 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
--
This message was sent by Atlassian JIRA
(v6.1#6144)