1 Reply Latest reply on Apr 8, 2010 1:26 PM by matthew horn

    Help FB4 - Problem Displaying PieChart working in Flex 3

    matn1

      Hi:

      I tried to post this before with no response and was wondering what might be the problem that causes the following error in Flex 4, but works in Flex 3

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at mx.charts.series::PieSeries/updateDisplayList()[E:\dev\4.x\frameworks\projects\datavisual ization\src\mx\charts\series\PieSeries.as:1403]
          at mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\m x\core\UIComponent.as:8709]
          at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework \src\mx\managers\LayoutManager.as:663]
          at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:718]
          at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1072]

       

      This is from an <mx:PieSeries within an <mxPieChart with the following params. Any ideas?

       

      <mx:PieChart id="chartPre1" height="100%" width="100%" showDataTips="false"
                            dataProvider="{preTestAverageAC}" verticalCenter="-2" horizontalCenter="-4"
                            useHandCursor="true" mouseEnabled="true" buttonMode="true" mouseChildren="false"
                            click="goToReport5()">
                          <mx:series>
                             <mx:PieSeries field="score" startAngle="{getStartAngle(parseFloat(preTestAverage))}" calloutStroke="{callouts}"  radialStroke="{radial}"  stroke="{pieborder}">