1 Reply Latest reply on Sep 28, 2011 4:59 PM by fdn64

    AdvancedDataGridBaseEx.as:3937 : null object reference in drawColumnBackground

    flcs4

      Application has group which has vertically a columnchart and below AdvancedDataGrid.

      All items are 100% width, also movie in browser IE is 100% width.

       

      Sometimes when browser window is resized smaller drawColumnBackground throws "TypeError: Error #1009"

      because lastRow is null

       

      var lastRow:Object = rowInfo[listItems.length - 1];

       

       

      Tested with

       

      Builder: 3.5, 4.1

      IE9: 10,1,102,64
      FF4:  10.3.181.14

       

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.controls::AdvancedDataGridBaseEx/drawColumnBackground()[E:\dev\hero_private_beta\frame works\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:3937]
      at mx.controls::AdvancedDataGridBaseEx/drawLinesAndColumnBackgrounds()[E:\dev\hero_private_b eta\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4222]
      at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[E:\dev\hero_private_beta\framewor ks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:2124]
      at mx.controls::AdvancedDataGrid/updateDisplayList()[E:\dev\hero_private_beta\frameworks\pro jects\datavisualization\src\mx\controls\AdvancedDataGrid.as:2899]
      at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[E:\dev\hero_private_beta\ frameworks\projects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:3472 ]
      at mx.managers::LayoutManager/validateDisplayList()[E:\dev\hero_private_beta\frameworks\proj ects\framework\src\mx\managers\LayoutManager.as:719]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private_beta\frameworks\pr ojects\framework\src\mx\managers\LayoutManager.as:796]
      at mx.managers::LayoutManager/validateNow()[E:\dev\hero_private_beta\frameworks\projects\fra mework\src\mx\managers\LayoutManager.as:855]
      at spark.components::Application/resizeHandler()[E:\dev\hero_private_beta\frameworks\project s\spark\src\spark\components\Application.as:1342]
      at spark.components::Application/commitProperties()[E:\dev\hero_private_beta\frameworks\proj ects\spark\src\spark\components\Application.as:1047]
      at mx.core::UIComponent/validateProperties()[E:\dev\hero_private_beta\frameworks\projects\fr amework\src\mx\core\UIComponent.as:8095]
      at mx.managers::LayoutManager/validateProperties()[E:\dev\hero_private_beta\frameworks\proje cts\framework\src\mx\managers\LayoutManager.as:597]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private_beta\frameworks\pr ojects\framework\src\mx\managers\LayoutManager.as:790]
      at mx.managers::LayoutManager/validateNow()[E:\dev\hero_private_beta\frameworks\projects\fra mework\src\mx\managers\LayoutManager.as:855]
      at spark.components::Application/resizeHandler()[E:\dev\hero_private_beta\frameworks\project s\spark\src\spark\components\Application.as:1342]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.managers::SystemManager/Stage_resizeHandler()[E:\dev\hero_private_beta\frameworks\proj ects\framework\src\mx\managers\SystemManager.as:3081]