idlehomescreen/widgetmanager/src/wmeffectmanager.cpp
branchRCL_3
changeset 52 a1e3af341cc7
parent 47 7be2816dbabd
child 84 20d75ec6647e
--- a/idlehomescreen/widgetmanager/src/wmeffectmanager.cpp	Tue May 25 12:29:32 2010 +0300
+++ b/idlehomescreen/widgetmanager/src/wmeffectmanager.cpp	Tue Jun 01 13:56:29 2010 +0100
@@ -51,7 +51,9 @@
 //
 void CWmEffectManager::ConstructL()
     {
+#ifndef NO_ALF_OBSERVER
     iObserver = CAlfEffectObserver::NewL(); 
+#endif
     }
 
 // -----------------------------------------------------------------------------
@@ -160,6 +162,11 @@
 //
 TBool CWmEffectManager::WaitActiveEffect( TInt aInterval )     
     {
+    if (iObserver == NULL)
+        {
+        return ETrue;
+        }
+
     TBool retval( EFalse );
     TInt loop( aInterval / KWaitInterval );
     
@@ -202,7 +209,7 @@
 TBool CWmEffectManager::IsEffectActive()
     {
     TBool retVal( EFalse );
-    if ( iObserver->ActiveEffectsCount() )
+    if ( iObserver != NULL && iObserver->ActiveEffectsCount() )
         retVal = ETrue;
     return retVal;
     }