summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-19 14:56:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-19 15:42:50 +0100
commitcbe2b9cb69a685ab89384f98a9e62b2623afcd9b (patch)
tree4b727668be7c8c4df299258fe86cc1c7fc0169d0
parent27ccddf5034ec9e80a5adf93c630247bb5807676 (diff)
afl-eventtesting: deref of null GetMainViewShell
Change-Id: Ie6863f446aa688bc1bb3f725ee31e9984dadc7a4
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 166b8c17e32e..79c89977ca1a 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -1140,7 +1140,9 @@ SdPage* AnnotationManagerImpl::GetLastPage()
SdPage* AnnotationManagerImpl::GetCurrentPage()
{
- return mrBase.GetMainViewShell()->getCurrentPage();
+ if (rBase.GetMainViewShell().get())
+ mrBase.GetMainViewShell()->getCurrentPage();
+ return nullptr;
}
AnnotationManager::AnnotationManager( ViewShellBase& rViewShellBase )