TryCatch(__pTelephonyMgr != null, (errorCode = ERROR_TAPI_INIT_FAILED), "TAPI initialization failed");
//check if phone is in flight mode
- if(__pSettingsPresentor->GetFlightModeStatus() == true)
+ if(__pSettingsPresentor != null && __pSettingsPresentor->GetFlightModeStatus() == true)
{
__pTelEventListener->HandleTelephonyError(ERROR_FLIGHT_MODE_SET);
return;