diff --git a/xpcom/threads/nsTimerImpl.cpp b/xpcom/threads/nsTimerImpl.cpp index 06ddbf16d21..bd99649707f 100644 --- a/xpcom/threads/nsTimerImpl.cpp +++ b/xpcom/threads/nsTimerImpl.cpp @@ -322,8 +322,8 @@ void nsTimerImpl::Fire() nsCOMPtr queue; if (gThread) gThread->mEventQueueService->GetThreadEventQueue(thread, getter_AddRefs(queue)); - - queue->PostEvent(&event->e); + if (queue) + queue->PostEvent(&event->e); } void nsTimerImpl::SetDelayInternal(PRUint32 aDelay)