diff --git a/utils/MsgTask.cpp b/utils/MsgTask.cpp index eaead5cf..ad95a83e 100644 --- a/utils/MsgTask.cpp +++ b/utils/MsgTask.cpp @@ -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); } }