diff --git a/widget/xpwidgets/PuppetWidget.cpp b/widget/xpwidgets/PuppetWidget.cpp index 6bd14cbe2375..0e9f595853e6 100644 --- a/widget/xpwidgets/PuppetWidget.cpp +++ b/widget/xpwidgets/PuppetWidget.cpp @@ -540,7 +540,9 @@ PuppetWidget::Paint() } } - mAttachedWidgetListener->DidPaintWindow(); + if (mAttachedWidgetListener) { + mAttachedWidgetListener->DidPaintWindow(); + } return NS_OK; }