diff -r 1c556dee8eb1 -r eb6690d0d439 syncmlfw/common/sosserver/src/nsmlsoshandler.cpp --- a/syncmlfw/common/sosserver/src/nsmlsoshandler.cpp Fri Aug 06 18:29:23 2010 +0530 +++ b/syncmlfw/common/sosserver/src/nsmlsoshandler.cpp Thu Aug 19 17:35:34 2010 +0530 @@ -813,26 +813,19 @@ CNSmlDMSettings* settings = CNSmlDMSettings::NewLC(); CNSmlDMProfile* prof = settings->ProfileL( iCurrentJob->ProfileId() ); if(prof) + { + CleanupStack::PushL( prof ); + if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden )) { - CleanupStack::PushL( prof ); - } - - if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden )) - { - syncInit = EServerAlerted; + syncInit = EServerAlerted; } - if ( !iCurrentJob->TransportId() ) - { - if ( prof ) - { - iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) ); - } + if ( !iCurrentJob->TransportId() ) + { + iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) ); } - if(prof) - { CleanupStack::PopAndDestroy( prof ); - } + } CleanupStack::PopAndDestroy( settings );