diff -r 238255e8b033 -r 84d9eb65b26f messagingapp/msgappfw/utils/src/ccsdebug.cpp --- a/messagingapp/msgappfw/utils/src/ccsdebug.cpp Fri Apr 16 14:56:15 2010 +0300 +++ b/messagingapp/msgappfw/utils/src/ccsdebug.cpp Mon May 03 12:29:07 2010 +0300 @@ -81,7 +81,7 @@ delete dbg; } - if ( dbgArr->IsEmpty() ) + if ( !dbgArr && dbgArr->IsEmpty() ) { delete dbgArr; Dll::SetTls( NULL );