Categories Displayed in Flash

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

Here's another needle, in the heap and stack.

If you have an array and you trace it out like so:


var ary:Array = [1,2,3]

trace(ary);// outputs 1,2,3

Behind the scenes, each element in the collection has it's toString() function before returning the single string. This is fine and good. However, if there is an error in that in the toString(), Even with debugging enabled, errors won't show up with a line number, leaving you head-scratching. In my case the toString function was overridden from a parent class, and didn't initialize variables due to missing a super() in the subClass's constructor.

Add a Comment: