Once I moved my code from Beta 3 to the released version, a new bug
appeared. Here's the dump, with the problem description below:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
mx.charts::BarChart/http://www.adobe.com/2006/flex/mx/internal::measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\BarChart.as:672]
mx.charts.series::BarSeries/updateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1887]
mx.charts.chartClasses::Series/validateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:1486]
mx.charts.chartClasses::Series/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:828]
mx.charts.series::BarSeries/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1013]
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]

Essentiall, I have a simple BarChart with 2 series.
If I don't set a labelFunction on the barSeries, all is good. Once I
add my labelFunction, which when reduced for diagnosing this bug only
returns "test" (or whatever test I try), I get the dump pretty
quickly. If I change the barChart.type to "clustered", it's fine, but
having both "stacked" AND the barSeries labelFunction will cause this
bug. 
Keep in mind that I have data being fed into the chart so I can't
guarantee that it will fail just using static data, since it doesn't
always fail immediately for me. Within seconds, though.

So - the question is - in looking at the dump, is the problem on my
end, or Adobes? I've looked at the mx_internal measureLabels() code,
but can't determine what else I can change to get past this issue.

Thanks for any help with this.
-Eddie

Reply via email to