uiservicetab/vimpstengine/src/cvimpstenginecvlistener.cpp
branchRCL_3
changeset 11 bef90b82da71
parent 0 5e5d6b214f4f
child 14 9fdee5e1da30
--- a/uiservicetab/vimpstengine/src/cvimpstenginecvlistener.cpp	Fri Mar 12 15:41:33 2010 +0200
+++ b/uiservicetab/vimpstengine/src/cvimpstenginecvlistener.cpp	Mon Mar 15 12:39:32 2010 +0200
@@ -92,9 +92,11 @@
     // resubscribe before processing new value to prevent missing updates
     //TBuf <KMaxSerIdXspIdLen> serId_usrId;
     HBufC16* serId_usrId = HBufC16::NewLC(KMaxSerIdXspIdLen);
-    TPtr serId_usrIdPtr(serId_usrId->Des());
-    
-    iProperty.Get(KConvViewUID,KXspIdServiceIDKey,serId_usrIdPtr);
+    if ( serId_usrId )
+        {
+        TPtr serId_usrIdPtr(serId_usrId->Des());
+        iProperty.Get(KConvViewUID,KXspIdServiceIDKey,serId_usrIdPtr);
+        }
     // parse the service id and userid form the buf and get the 
     // contactlink and first name and publish it.
     TInt posOfDelimiter  = serId_usrId->Find(KDelimiter);
@@ -170,7 +172,11 @@
             }
         CleanupStack::PopAndDestroy( &supportedServices );
         }
-    CleanupStack::PopAndDestroy( serId_usrId );
+        
+    if(serId_usrId)
+    		{
+    		CleanupStack::PopAndDestroy( serId_usrId );
+    		}  
     iProperty.Subscribe( iStatus );
     SetActive();
     TRACE( T_LIT("CVIMPSTEngineCVListener::RunL() end"));