2 Replies Latest reply on May 27, 2010 5:47 AM by BhaskerChari

    FB4: Null object reference in WedgeItemRenderer.as:155

    flcs4 Level 1

      This keep popping up:

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      at mx.charts.renderers::WedgeItemRenderer/updateDisplayList()[E:\dev\4.0.0\frameworks\projec ts\datavisualization\src\mx\charts\renderers\WedgeItemRenderer.as:155]
      at mx.skins::ProgrammaticSkin/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\skins\ProgrammaticSkin.as:503]
      at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:663]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:718]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]

       

      WedgeItemRenderer.as:

           155:  var rc:Rectangle = new Rectangle(origin.x - outerRadius,
                                                         origin.y - outerRadius,
                                                         2 * outerRadius, 2 * outerRadius);

       

       

      <mx:PieChart id="chart" width="100%" height="100%">
      </mx:PieChart>

       

      Origin is null ?