3 Replies Latest reply on Jul 11, 2011 12:18 PM by Daniel Pride

    Crazy Type Error ?

    Daniel Pride Level 1

      I am getting the following type error on one record in a datagrid. Not on the others.

      I remove the click handler and still get the same thing.

      Anybody with a clue would be GREATLY appreciated cause I have no idea what is going on here after three hours of debugging

       

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at spark.components::Group/addElement()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\com ponents\Group.as:1342]
          at spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.5.1\framewo rks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748]
          at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.5.1\frameworks \projects\spark\src\spark\components\gridClasses\GridLayout.as:883]
          at spark.components.gridClasses::GridLayout/measure()[E:\dev\4.5.1\frameworks\projects\spark \src\spark\components\gridClasses\GridLayout.as:444]
          at spark.components.supportClasses::GroupBase/measure()[E:\dev\4.5.1\frameworks\projects\spa rk\src\spark\components\supportClasses\GroupBase.as:1148]
          at mx.core::UIComponent/measureSizes()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8496]
          at mx.core::UIComponent/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8420]
          at spark.components::Group/validateSize()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\c omponents\Group.as:1012]
          at mx.managers::LayoutManager/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\managers\LayoutManager.as:665]
          at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:816]
          at mx.managers::LayoutManager/validateNow()[E:\dev\4.5.1\frameworks\projects\framework\src\m x\managers\LayoutManager.as:878]
          at spark.components::Application/resizeHandler()[E:\dev\4.5.1\frameworks\projects\spark\src\ spark\components\Application.as:1991]
          at spark.components::Application/commitProperties()[E:\dev\4.5.1\frameworks\projects\spark\s rc\spark\components\Application.as:1515]
          at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\core\UIComponent.as:8209]
          at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:597]
          at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:813]
          at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]