summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-16 16:45:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-16 16:45:48 +0000
commit9a299c989b84cbb7a30fcef9dcc02ed04a332829 (patch)
tree0017d68c420d23c059da7e61f1a682421c467021 /sd/source
parent0f12f8b23bd9cb9513b14c3d5a01db67f8d2d65b (diff)
Resolves: rhbz#674330 dereference of NULL mpBase
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/unoidl/DrawController.cxx4
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();