From b60977be36a3233322ae9a156fa504d0ec7467ab Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 25 Jan 2013 11:51:16 -0800 Subject: [PATCH] Bug 834760: Null-check mAttachedWidgetListener. r=mwu --- widget/xpwidgets/PuppetWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widget/xpwidgets/PuppetWidget.cpp b/widget/xpwidgets/PuppetWidget.cpp index 0e9f595853e6..2dd9660e4137 100644 --- a/widget/xpwidgets/PuppetWidget.cpp +++ b/widget/xpwidgets/PuppetWidget.cpp @@ -263,8 +263,6 @@ PuppetWidget::DispatchEvent(nsGUIEvent* event, nsEventStatus& aStatus) aStatus = nsEventStatus_eIgnore; - NS_ABORT_IF_FALSE(mAttachedWidgetListener, "No listener!"); - if (event->message == NS_COMPOSITION_START) { mIMEComposing = true; } @@ -288,7 +286,9 @@ PuppetWidget::DispatchEvent(nsGUIEvent* event, nsEventStatus& aStatus) break; } - aStatus = mAttachedWidgetListener->HandleEvent(event, mUseAttachedEvents); + if (mAttachedWidgetListener) { + aStatus = mAttachedWidgetListener->HandleEvent(event, mUseAttachedEvents); + } if (event->message == NS_COMPOSITION_END) { mIMEComposing = false;