Change-Id: Ia89174a2a85a34ed9fa46630439d6fb2bf133890
Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
return TRUE;
}
- for (int i=0;i<tel_list.count;i++) {
+ for (int i = 0; i < tel_list.count; i++) {
ret =
telephony_call_get_call_list(tel_list.handle[i], &count_sim[i],
&call_list_sim);
- if (ret != TELEPHONY_ERROR_NONE) {
+ if (ret != TELEPHONY_ERROR_NONE || call_list_sim == NULL) {
VideoLogError("Cannot get call list information for the sim");
return TRUE;
}