flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33975) Crash when opening DateField
Date Fri, 21 Mar 2014 22:08:46 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943634#comment-13943634
] 

Justin Mclean commented on FLEX-33975:
--------------------------------------

Unable to reproduce with this with the 4.11 released SDK in en_US or other locale.

{code}
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx">
	<fx:Script>
		<![CDATA[
			[Bindable] public var DOB:String;
		]]>
	</fx:Script>
	
	<mx:FormItem label="DOB:"> 
		<mx:DateField id="dob" formatString="YYYY-MM-DD" text="{DOB}" yearNavigationEnabled="true"/>

	</mx:FormItem> 
	
</s:Application>
{code}

Was the SDK installed with the installer or via some other way?

> 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.2#6252)

Mime
View raw message