satengine/SatServer/Engine/src/CSatCommandContainer.cpp
branchRCL_3
changeset 6 1b9ee3c7442d
parent 0 ff3b6d0fd310
child 8 ba42c4bd84dd
--- a/satengine/SatServer/Engine/src/CSatCommandContainer.cpp	Fri Mar 12 15:45:50 2010 +0200
+++ b/satengine/SatServer/Engine/src/CSatCommandContainer.cpp	Mon Mar 15 12:42:43 2010 +0200
@@ -318,7 +318,10 @@
     // to handle client responses. If SAT UI / Proactive command is executing
     // while Bluetooth SAP is enabled, SAT UI sends ClientResponse and that must
     // be preveted
-    iServiceReqs->Reset();
+    if ( iServiceReqs )
+        {
+        iServiceReqs->Reset();
+        }
 
     // Close all reserved BIP Data channels
     if ( iBipUtils )
@@ -338,7 +341,10 @@
 
 #ifdef SAT_USE_DUMMY_TSY
     // Close ATSY. This is needed when testin BT SAP in emulator
-    iUSatAPI->Close();
+    if ( iUSatAPI )
+        {
+        iUSatAPI->Close();
+        }
 #endif
 
     LOG( NORMAL,