From e19cc60bdb4582c6b9c4962ce3b04beb3a43759f Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Tue, 15 Jan 2002 00:43:10 +0000 Subject: [PATCH] adding check for null. GetThreadEventQueue can return a null queue which we need to check for --- xpcom/threads/nsTimerImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)