diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-16 16:45:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-16 16:45:48 +0000 |
commit | 1a9c37ac56b97aaf7535bff7bd2fb84b13ef8e50 (patch) | |
tree | bab01e33f216f47b7f7c7a99e0ec9b53eb837875 /sd/source/ui | |
parent | 4a828bfea3f67062ebf7bda010c733c53f7f4270 (diff) |
Resolves: rhbz#674330 dereference of NULL mpBase
Diffstat (limited to 'sd/source/ui')
-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 6f3c1e14f..f64b64931 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(); |