Hi,

Wondering if anyone run into this error.  I been unable to reproduce it locally 
but it seems to do with a drop down combo box in an Advanced data grid header.

 From FP 11.5 release release stack dump:

TypeError: Error #1009
        at mx.controls::ComboBox/destroyDropdown()
        at mx.controls::ComboBox/removedFromStageHandler()
        at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()
        at mx.core::UIComponent/removeChild()
        at mx.core::UIComponent/addChild()
        at mx.controls::AdvancedDataGrid/addRendererToContentArea()
        at mx.controls::AdvancedDataGrid/createHeaderItems()
        at mx.controls::AdvancedDataGrid/createHeaders()
        at 
mx.controls.advancedDataGridClasses::AdvancedDataGridBase/makeRowsAndColumns()
        at mx.controls::AdvancedDataGridBaseEx/makeRowsAndColumns()
        at mx.controls::AdvancedDataGrid/makeRowsAndColumns()
        at 
mx.controls.listClasses::AdvancedListBase/makeRowsAndColumnsWithExtraRows()
        at mx.controls.listClasses::AdvancedListBase/updateDisplayList()
        at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()
        at mx.controls::AdvancedDataGrid/updateDisplayList()
        at mx.controls.listClasses::AdvancedListBase/validateDisplayList()
        at mx.managers::LayoutManager/validateDisplayList()
        at mx.managers::LayoutManager/doPhasedInstantiation()
        at mx.managers::LayoutManager/validateNow()
        at mx.controls::ComboBox/displayDropdown()
        at mx.controls::ComboBox/downArrowButton_buttonDownHandler()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
        at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()
        at mx.controls::Button/mouseDownHandler()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
        at mx.managers::SystemManager/mouseEventHandler()


Looking at the code:
    private function destroyDropdown():void
    {
        if (inTween)
            tween.endTween();
        
        displayDropdown(false, null, false);
    }

The obvious fix needs to be a check that the tween is not null:

    private function destroyDropdown():void
    {
        if (inTween && tween)
            tween.endTween();
        
        displayDropdown(false, null, false);
    }

Any objectons if I make that change?

Thanks,
Justin

Reply via email to