diff -r 6134b5029079 -r 876a3df1f464 voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp --- 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 ) {