Hello

I have a chart which works fine in a normal MXML component, but when I  
try to turn it into a module I get this when trying to load it:

TypeError: Error #1009: Cannot access a property or method of a null  
object reference.
        at mx.charts.chartClasses::ChartLabel/updateDisplayList()[C:\work\flex 
\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses 
\ChartLabel.as:262]
        at mx.core::UIComponent/validateDisplayList()[E:\dev\3.1.0\frameworks 
\projects\framework\src\mx\core\UIComponent.as:6293]
        at mx.managers::LayoutManager/validateDisplayList()[E:\dev 
\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as: 
605]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev 
\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as: 
678]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks 
\projects\framework\src\mx\core\UIComponent.as:8565]
        at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks 
\projects\framework\src\mx\core\UIComponent.as:8508]

My guess is that this is somehow related to the way the chart is now  
instantiated and that I need to somehow delay whatever Flex is trying  
to do that causes this crash.

Anyone have any clues as to what's going wrong here?

TIA

Guy

Reply via email to