X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FCallPresentationModel.cpp;h=73447b1b48bab109b2f7407e29cf4b5fd96f647c;hb=41c8c6ea37bd4bb51cbec4c74ce0481e5e10b993;hp=6020c28daeb1f3e04e2fd0b5aea7c46a3d63ddab;hpb=4f167e0f998cf2cfc9d1e810b14738d86d1d6475;p=apps%2Fosp%2FCall.git diff --git a/src/CallPresentationModel.cpp b/src/CallPresentationModel.cpp index 6020c28..73447b1 100644 --- a/src/CallPresentationModel.cpp +++ b/src/CallPresentationModel.cpp @@ -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;