bluetoothengine/btaudioman/src/basrvacc.cpp
changeset 15 00f9ee97d895
parent 2 0b192a3a05a4
child 51 625f43ae9362
--- a/bluetoothengine/btaudioman/src/basrvacc.cpp	Tue Feb 02 00:20:42 2010 +0200
+++ b/bluetoothengine/btaudioman/src/basrvacc.cpp	Fri Apr 16 15:08:36 2010 +0300
@@ -107,30 +107,35 @@
 void CBasrvAcc::AccOpenedAudio(TProfiles aProfile)
     {
     TRACE_FUNC
+    __ASSERT_ALWAYS(iState, User::Panic(KPanicCategory, EInvalidNullState));
     iState->AccOpenedAudio(aProfile);
     }
 
 void CBasrvAcc::AccClosedAudio(TProfiles aProfile)
     {
     TRACE_FUNC
+    __ASSERT_ALWAYS(iState, User::Panic(KPanicCategory, EInvalidNullState));
     iState->AccClosedAudio(aProfile);
     }
     
 void CBasrvAcc::AccessoryDisconnectedL(TProfiles aProfile)
     {
     TRACE_FUNC
+    __ASSERT_ALWAYS(iState, User::Panic(KPanicCategory, EInvalidNullState));
     iState->AccessoryDisconnectedL(aProfile);
     }
 
 void CBasrvAcc::OpenAudioL(TAccAudioType aType)
     {
     TRACE_FUNC
+    __ASSERT_ALWAYS(iState, User::Panic(KPanicCategory, EInvalidNullState));
     iState->OpenAudioL(aType);
     }
 
 void CBasrvAcc::CloseAudioL(TAccAudioType aType)
     {
     TRACE_FUNC
+    __ASSERT_ALWAYS(iState, User::Panic(KPanicCategory, EInvalidNullState));
     iState->CloseAudioL(aType);
     }