diff -r 5456b4e8b3a8 -r 20d75ec6647e idlehomescreen/widgetmanager/src/wmeffectmanager.cpp --- a/idlehomescreen/widgetmanager/src/wmeffectmanager.cpp Wed Sep 01 12:32:46 2010 +0100 +++ b/idlehomescreen/widgetmanager/src/wmeffectmanager.cpp Thu Sep 02 15:42:21 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; }