diff options
Diffstat (limited to 'sd/source/ui/unoidl/DrawController.cxx')
-rw-r--r-- | sd/source/ui/unoidl/DrawController.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index 149fdc17b9fe..9f2ec7e3964b 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -166,7 +166,9 @@ void SAL_CALL DrawController::dispose (void) { mbDisposing = true; - boost::shared_ptr<ViewShell> pViewShell = mpBase->GetMainViewShell(); + boost::shared_ptr<ViewShell> pViewShell; + if (mpBase) + pViewShell = mpBase->GetMainViewShell(); if ( pViewShell ) { pViewShell->DeactivateCurrentFunction(); |