voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp
branchRCL_3
changeset 12 876a3df1f464
parent 10 ed1e38b404e5
--- a/voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp	Wed Apr 14 15:49:55 2010 +0300
+++ b/voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp	Tue Apr 27 16:28:03 2010 +0300
@@ -159,7 +159,7 @@
         TRAP( result, sipConnection = CreateSipConnectionL( aProfileId ) );
         }
 
-    if( result == KErrNone )
+    if( result == KErrNone && sipConnection )
         {
         sipConnection->GetState( aState, aError );
         }
@@ -333,7 +333,7 @@
     TInt ret = ( KErrNotFound );
     CScpSipConnection* sipConnection( NULL );
     
-    sipConnection =  GetSipConnection( aProfileId );
+    sipConnection = GetSipConnection( aProfileId );
     
     if ( sipConnection )
         {