Skip navigation
Highland Matt D
Currently Being Moderated

DateField crashes when used as itemEditor

Oct 5, 2007 12:46 PM

I copied the sample from the Flex 3 Developers Guide on page 685 and when I click on the DataField to change the date I get the following crash. I'm a newb to Flex so I'm sure I've overlooked something simple, but after a couple hours of reading and re-reading, I can't see what's wrong.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls.dataGridClasses::DataGridColumn/ http://www.adobe.com/2006/flex/mx/internal::addStyleToProtoChain()[E:\ dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\controls\dat aGridClasses\DataGridColumn.as:1261
at mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties( )[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\styles\ StyleProtoChain.as:202]
at mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties( )[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\styles\ StyleProtoChain.as:190]
at mx.styles::StyleProtoChain$/initProtoChainForUIComponentStyleName()[E :\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\styles\Sty leProtoChain.as:111]
at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::initProtoChain()[E:\dev\fl ex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.a s:7184
at mx.core::UIComponent/regenerateStyleCache()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\UIComponent.as:7405]
at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::addingChild()[E:\dev\flex_ 3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5 013
at mx.core::UIComponent/addChild()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:4736]
at mx.controls::DateChooser/mx.controls:DateChooser::createChildren()[E: \dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\controls\Da teChooser.as:1866]
at mx.core::UIComponent/initialize()[E:\dev\flex_3_beta2\sdk\frameworks\ projects\framework\src\mx\core\UIComponent.as:5144]
at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\flex_3 _beta2\sdk\frameworks\projects\framework\src\mx\managers\SystemManager .as:1623
at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E :\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\S ystemManager.as:1673
at mx.managers::SystemManager/addChild()[E:\dev\flex_3_beta2\sdk\framewo rks\projects\framework\src\mx\managers\SystemManager.as:1227]
at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:261]
at mx.managers::PopUpManager$/addPopUp()[E:\dev\flex_3_beta2\sdk\framewo rks\projects\framework\src\mx\managers\PopUpManager.as:148]
at mx.controls::DateField/mx.controls:DateField::displayDropdown()[E:\de v\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\controls\DateF ield.as:2125]
at Function/ http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[E:\d ev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UICompon ent.as:8338]
at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[E:\de v\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UICompone nt.as:8281]

Attach Code

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points