Prevent issue fix. 2Nabi issues fixed
[apps/osp/Call.git] / src / CallPresentationModel.cpp
index 6020c28..73447b1 100644 (file)
@@ -115,7 +115,7 @@ CallPresentationModel::DialCall(String& contactNumber, bool isEmergency)
        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;