supl/locationomasuplprotocolhandler/protocolhandlerver2/src/epos_comasuplprotocolmanager2.cpp
--- a/supl/locationomasuplprotocolhandler/protocolhandlerver2/src/epos_comasuplprotocolmanager2.cpp Tue May 11 16:36:36 2010 +0300
+++ b/supl/locationomasuplprotocolhandler/protocolhandlerver2/src/epos_comasuplprotocolmanager2.cpp Tue May 25 13:09:42 2010 +0300
@@ -108,13 +108,21 @@
{
iSettingsLauncher->CancelLaunch();
}
- iSuplSettings->SetUIActive( EFalse );
+
+ if(iSuplSettings)
+ {
+ iSuplSettings->SetUIActive( EFalse );
+ }
DeleteAllSessions();
iSuplSessions.Reset();
iSuplSessions.Close();
+ //Only attempt to unload the phone if the TSY has actually been initialised
+ if(iTsyName.Length() > 0)
+ {
iTelServer.UnloadPhoneModule(iTsyName);
+ }
iQueuedPacket.Close();