diff -r 459da34cdb45 -r 83cc6bae1de8 ipsservices/ipssosaoplugin/src/IpsSosAOImapAgent.cpp --- a/ipsservices/ipssosaoplugin/src/IpsSosAOImapAgent.cpp Fri Sep 03 17:52:02 2010 +0300 +++ b/ipsservices/ipssosaoplugin/src/IpsSosAOImapAgent.cpp Wed Sep 15 12:09:55 2010 +0300 @@ -284,10 +284,15 @@ TBool CIpsSosAOImapAgent::IsConnected() const { FUNC_LOG; + TBool ret = EFalse; TMsvEntry tentry; TMsvId service; - iSession.GetEntry( iServiceId, service, tentry ); - return tentry.Connected(); + TInt err = iSession.GetEntry( iServiceId, service, tentry ); + if ( err == KErrNone ) + { + ret = tentry.Connected(); + } + return ret; } // ---------------------------------------------------------------------------- @@ -342,7 +347,7 @@ const RArray& /*aFetchMsgArray*/ ) { FUNC_LOG; - + // implementation removed when not needed anywhere } // ----------------------------------------------------------------------------