summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-03-12 20:35:37 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-03-12 20:35:37 +0000
commitf6b6550f24f9b531b0050cf05d962de7dcbf8523 (patch)
tree557191ec1f78437edda48c37d446577dec76d645
parent236f668034f272ac2e5c20753f3bb437fb50cae1 (diff)
parent31067484c2130d72e5022db1caaeab40e2312bd1 (diff)
downloadplatform_hardware_ril-o-mr1-iot-preview-8.tar.gz
platform_hardware_ril-o-mr1-iot-preview-8.tar.bz2
platform_hardware_ril-o-mr1-iot-preview-8.zip
-rw-r--r--libril/ril.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp
index 514ac903..fbf7ee08 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -792,9 +792,11 @@ void RIL_onUnsolicitedResponse(int unsolResponse, const void *data,
assert(rwlockRet == 0);
}
- ret = s_unsolResponses[unsolResponseIndex].responseFunction(
- (int) soc_id, responseType, 0, RIL_E_SUCCESS, const_cast<void*>(data),
- datalen);
+ if (s_unsolResponses[unsolResponseIndex].responseFunction) {
+ ret = s_unsolResponses[unsolResponseIndex].responseFunction(
+ (int) soc_id, responseType, 0, RIL_E_SUCCESS, const_cast<void*>(data),
+ datalen);
+ }
rwlockRet = pthread_rwlock_unlock(radioServiceRwlockPtr);
assert(rwlockRet == 0);