This seems like a bug to me. In the following code if dp is null, the trace will not be executed.
function greatFun():void { if( dp.hasEventListener( "foo" ) ) { // do stuff } trace( "WTF" ); } It should either throw a RTE or just evaluate to false, shouldn't it? Thanks, Ben