0 Replies Latest reply on Oct 29, 2009 3:25 AM by Pun4kuono

    Problem with charts when importing flex 3 project to flex 4... a bug?

    Pun4kuono Level 1

      Hi all,


      I'm trying to import flex 3 project to flex 4 and got it to compile and everything and it seems otherwise to be working correctly, or at least the problems are waiting for this one to get sorted before appearing. The charts fail when when the dataprovider for them are changed:


      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at mx.charts.series::LineSeries/updateDisplayList()[C:\work\flex\dmv_automation\projects\dat avisualisation\src\mx\charts\series\LineSeries.as:1013]
          at mx.core::UIComponent/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8065]
          at mx.managers::LayoutManager/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:663]
          at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\frameworks\projects \framework\src\mx\managers\LayoutManager.as:718]
          at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_beta2\frameworks\ projects\framework\src\mx\managers\LayoutManager.as:1069]


      Even tough the horizontalAxis is defined correct it somehow gets to be null at the update. The charts work outside this project with the data that comes from the server. Has someone had the same problem or knows otherwise how to fix this? Thanks for your help.