Merge "Add null check to avoid sigsegv on shutdown"

This commit is contained in:
Linux Build Service Account 2018-09-06 22:10:34 -07:00 committed by Gerrit - the friendly Code Review server
commit ee99c426c5

View file

@ -74,10 +74,11 @@ void MsgTask::destroy() {
}
void MsgTask::sendMsg(const LocMsg* msg) const {
if (msg) {
if (msg && this) {
msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy);
} else {
LOC_LOGE("%s: msg is NULL", __func__);
LOC_LOGE("%s: msg is %p and this is %p",
__func__, msg, this);
}
}