PlayView *pPlayView = (PlayView *) user_data;
int ret = TELEPHONY_ERROR_NONE;
telephony_call_h *call_list_sim;
- telephony_call_status_e status;
+ telephony_call_status_e status = TELEPHONY_CALL_STATUS_IDLE;
telephony_error_e ret_sim;
unsigned int count_sim = 0;
return;
}
- ret = telephony_call_get_status(*call_list_sim, &status);
- if (ret != TELEPHONY_ERROR_NONE) {
- VideoLogError("getting call status failed");
- return;
+ if (call_list_sim) {
+ ret = telephony_call_get_status(*call_list_sim, &status);
+ if (ret != TELEPHONY_ERROR_NONE) {
+ VideoLogError("getting call status failed");
+ return;
+ }
}
VideoLogDebug("call status = %d", status);