Replying to my own post...I guess I am seeing this same bug that's a
subject of another thread:
https://bugs.adobe.com/jira/browse/FLEXDMV-1695
My way of triggering it is slightly different but the same code
appears to be causing it.
I spose I'll try the workaround listed there.
Guy
On 22/10/2008, at 10:55 AM, Guy Morton wrote:
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