From 70e5f127bce188986e06f0cc8205cee1f089f8f5 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Tue, 13 Mar 2001 06:23:09 +0000 Subject: [PATCH] Add NULL check to fix crashing gtkEmbed problem --- widget/src/gtk/nsAppShell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/src/gtk/nsAppShell.cpp b/widget/src/gtk/nsAppShell.cpp index 21ddf562df95..f8aec4bd8886 100644 --- a/widget/src/gtk/nsAppShell.cpp +++ b/widget/src/gtk/nsAppShell.cpp @@ -479,5 +479,6 @@ PRBool processQueue(void *aElement, void *aData) void nsAppShell::ProcessBeforeID(unsigned long aID) { - sEventQueueList->EnumerateForwards(processQueue, (void *)aID); + if (sEventQueueList) + sEventQueueList->EnumerateForwards(processQueue, (void *)aID); }