vmbx/vmbxengine/src/voicemailboximpl.cpp
changeset 46 2fa1fa551b0b
parent 32 1f002146abb4
child 48 78df25012fda
--- a/vmbx/vmbxengine/src/voicemailboximpl.cpp	Mon Aug 23 15:50:31 2010 +0300
+++ b/vmbx/vmbxengine/src/voicemailboximpl.cpp	Fri Sep 03 13:59:20 2010 +0300
@@ -828,7 +828,22 @@
         iVmbxFactory->CreateEngineL( vmbxEngine, aType );
         CleanupStack::PushL( vmbxEngine );
         CVoiceMailboxEntry* entry( NULL );
-        vmbxEngine->GetL( entry );
+        TRAPD(err,vmbxEngine->GetL( entry ));
+        VMBLOGSTRING2( "VMBX: CVoiceMailboxImpl::NotifyChangedL err=%d",err );
+        if(err == KErrNotFound)
+            {
+            delete entry;
+            entry = NULL;
+            entry = CVoiceMailboxEntry::NewL();
+            // get als line info
+            entry->SetVmbxAlsLineType( VmbxUtilities::AlsLine() );
+            entry->SetVoiceMailboxType( aType );
+            entry->SetVmbxNumber( KNullDesC());
+            }
+        else
+            {
+            User::LeaveIfError(err);
+            }
         CleanupStack::PushL( entry );
         iNotifyCallBack->HandleNotifyL( *entry );
         CleanupStack::PopAndDestroy( entry );