Change-Id: Iaea0183423fe391e000bd6ef3ccb05c81ad474b1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
struct telephony_call *t_call = t_call_list->data;
+ if (t_call == NULL) {
+ ERR("t_call is NULL");
+ break;
+ }
+
if (t_call->call_status == HFP_CALL_STATUS_ACTIVE) {
if (t_active_call == NULL)
t_active_call = t_call;
}
}
- if (t_held_call_count == 1)
+ if (t_held_call != NULL && t_held_call_count == 1)
t_held_call->call_conference = FALSE;
- if (t_active_call_count == 1)
+ if (t_active_call != NULL && t_active_call_count == 1)
t_active_call->call_conference = FALSE;
}