idlehomescreen/widgetmanager/src/wmwidgetdata.cpp
branchRCL_3
changeset 11 ff572dfe6d86
parent 9 f966699dea19
child 12 9674c1a575e9
--- a/idlehomescreen/widgetmanager/src/wmwidgetdata.cpp	Fri Feb 19 22:42:37 2010 +0200
+++ b/idlehomescreen/widgetmanager/src/wmwidgetdata.cpp	Fri Mar 12 15:41:49 2010 +0200
@@ -280,6 +280,9 @@
         {
         iconStr = aIconStr.Alloc();
         }
+    
+    // nothing to do if no iconstr
+    if ( !iconStr ){ return; }
 
     TSize size( iLogoSize );
     if ( iLogoImage ) { size = iLogoImage->SizeInPixels(); }
@@ -295,7 +298,8 @@
     iconStr = NULL;
     
     // handle result
-    if ( KErrNone == err && IsPrepairingLogo() )
+    if ( KErrNone == err && iWait &&
+        IsPrepairingLogo() )
         {
         iWait->Start();
         }