We all get "TypeError # 1009 Unable to access the property or method of referencing a null object" from time to time - it doesn't matter, but sometimes it's hard to debug.
Flash gives you a call stack (which is the start), but leaves it to you to find out where the null object is - can it be determined exactly which link is causing the error?
Given the following (error prone) function:
function nullObjectReferenceError():void
{
var obj:Object;
var prop:* = obj.nonExistentProperty;
}
Instead of just a call stack from TypeError, I would like to trace something like: "Unable to access the property or method of referencing a null object in obj.nonExistentProperty " - is that even possible?
source
share