voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp
branchRCL_3
changeset 10 ed1e38b404e5
parent 9 bddb6d4447db
child 12 876a3df1f464
--- a/voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp	Mon Mar 15 12:39:55 2010 +0200
+++ b/voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp	Wed Mar 31 21:20:05 2010 +0300
@@ -471,9 +471,12 @@
        iAlrController->AllowMigrationL( aProfileId, iNewAlrIapId ) );
     
     CScpSipConnection* sipConnection( NULL );
+    sipConnection = GetSipConnection( aProfileId );
     
-    sipConnection = GetSipConnection( aProfileId );
-    sipConnection->SetProfileCurrentlyRoaming();
+    if ( sipConnection )
+        {
+        sipConnection->SetProfileCurrentlyRoaming();
+        }
     
     SCPLOGSTRING( "CScpProfileHandler::StartMigrtion -exit" );
     }