[Bugfix][T106BUG-545]requestGetCellInfoList may cause ril crash
Only Configure:No
Affected branch:master
Affected module:ril
Is it affected on both ZXIC and MTK:Only ZXIC
Self-test:Yes
Doc Update:No
Change-Id: I6d5bc19aebc9d339b7aa00dcef8e47075f247fc2
diff --git a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_mm.c b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_mm.c
index 7bbbb3f..84375d3 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_mm.c
+++ b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/ril/reference-ril/ril_mm.c
@@ -1501,7 +1501,12 @@
err = at_send_command_singleline("AT+ZEMSCIQ?", "+ZEMSCIQ:", &p_response);
if (err < 0 || p_response->success == 0) {
- RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
+ //xy.he add for T106BUG-545 start
+ if(NULL!=t)
+ {
+ RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
+ }
+ //xy.he add for T106BUG-545 end
at_response_free(p_response);
return;
}