summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/basedlgs.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/basedlgs.cxx')
-rw-r--r--sfx2/source/dialog/basedlgs.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 2b76b9cefc22..5dc2067dd23d 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -475,6 +475,8 @@ void SfxModelessDialogController::EndDialog()
{
m_xImpl->bClosing = true;
SfxDialogController::EndDialog();
+ if (!m_xImpl)
+ return;
m_xImpl->bClosing = false;
}