diff -r ba33815114d6 -r abcbdabaa4c5 uigraphics/AknIcon/src/AknIconManager.cpp --- a/uigraphics/AknIcon/src/AknIconManager.cpp Thu Jan 07 13:25:09 2010 +0200 +++ b/uigraphics/AknIcon/src/AknIconManager.cpp Mon Jan 18 21:12:52 2010 +0200 @@ -212,6 +212,10 @@ this, aSize.iWidth, aSize.iHeight, aMode, aAngle); #endif + if(!iBitmap) + { + return KErrCorrupt; + } // If already initialized with the same parameters, do nothing. if ( iBitmap->Handle() ) {