From c5dfe5a17650e35fcbc6c75151b03cdb18033cca Mon Sep 17 00:00:00 2001 From: Tatiana Meshkova Date: Fri, 15 Mar 2013 00:56:04 -0700 Subject: [PATCH] Bug 851438 - crash [@ MozQWidget::showEvent] r=romaxa. DONTBUILD --- widget/qt/mozqwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widget/qt/mozqwidget.cpp b/widget/qt/mozqwidget.cpp index d8e7a6b7e115..30aa32ccf9fd 100644 --- a/widget/qt/mozqwidget.cpp +++ b/widget/qt/mozqwidget.cpp @@ -414,7 +414,9 @@ void MozQWidget::hideEvent(QHideEvent* aEvent) void MozQWidget::showEvent(QShowEvent* aEvent) { - mReceiver->showEvent(aEvent); + if (mReceiver) { + mReceiver->showEvent(aEvent); + } QGraphicsWidget::showEvent(aEvent); }