From 3731f760c287376b51a14ec76fcf3d818716fbc0 Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Tue, 19 Feb 2008 13:15:37 +0000 Subject: [PATCH] Bug 380454, r=benjamin, sr=sicking git-svn-id: svn://10.0.0.236/trunk@245969 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/glue/nsThreadUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpcom/glue/nsThreadUtils.cpp b/mozilla/xpcom/glue/nsThreadUtils.cpp index 0ae127194d7..1bc0a60f6b7 100644 --- a/mozilla/xpcom/glue/nsThreadUtils.cpp +++ b/mozilla/xpcom/glue/nsThreadUtils.cpp @@ -136,7 +136,7 @@ NS_DispatchToCurrentThread(nsIRunnable *event) { #ifdef MOZILLA_INTERNAL_API nsIThread *thread = NS_GetCurrentThread(); - NS_ENSURE_STATE(thread); + if (!thread) { return NS_ERROR_UNEXPECTED; } #else nsCOMPtr thread; nsresult rv = NS_GetCurrentThread(getter_AddRefs(thread));