3 Replies Latest reply on Oct 5, 2007 9:15 PM by laurenpark

    DateField crashes when used as itemEditor

    Highland Matt D
      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\dataGridClasses\DataGridColumn.as:1261
      at mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties()[E:\dev\flex_3_beta 2\sdk\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:202]
      at mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties()[E:\dev\flex_3_beta 2\sdk\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:190]
      at mx.styles::StyleProtoChain$/initProtoChainForUIComponentStyleName()[E:\dev\flex_3_beta2\s dk\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:111]
      at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::initProtoChain()[E:\dev\flex_3_beta2\sdk\frame works\projects\framework\src\mx\core\UIComponent.as:7184
      at mx.core::UIComponent/regenerateStyleCache()[E:\dev\flex_3_beta2\sdk\frameworks\projects\f ramework\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\framewor ks\projects\framework\src\mx\core\UIComponent.as:5013
      at mx.core::UIComponent/addChild()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src \mx\core\UIComponent.as:4736]
      at mx.controls::DateChooser/mx.controls:DateChooser::createChildren()[E:\dev\flex_3_beta2\sd k\frameworks\projects\framework\src\mx\controls\DateChooser.as:1866]
      at mx.core::UIComponent/initialize()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\s rc\mx\core\UIComponent.as:5144]
      at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\flex_3_beta2\sdk\framework s\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\s dk\frameworks\projects\framework\src\mx\managers\SystemManager.as:1673
      at mx.managers::SystemManager/addChild()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framewo rk\src\mx\managers\SystemManager.as:1227]
      at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\flex_3_beta2\sdk\frameworks\projects\fram ework\src\mx\managers\PopUpManagerImpl.as:261]
      at mx.managers::PopUpManager$/addPopUp()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framewo rk\src\mx\managers\PopUpManager.as:148]
      at mx.controls::DateField/mx.controls:DateField::displayDropdown()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\controls\DateField.as:2125]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[E:\dev\flex_3_beta2\sdk\ frameworks\projects\framework\src\mx\core\UIComponent.as:8338]
      at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\UIComponent.as:8281]

      Attach Code