diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-19 14:56:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-19 15:42:50 +0100 |
commit | cbe2b9cb69a685ab89384f98a9e62b2623afcd9b (patch) | |
tree | 4b727668be7c8c4df299258fe86cc1c7fc0169d0 /sd | |
parent | 27ccddf5034ec9e80a5adf93c630247bb5807676 (diff) |
afl-eventtesting: deref of null GetMainViewShell
Change-Id: Ie6863f446aa688bc1bb3f725ee31e9984dadc7a4
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/annotations/annotationmanager.cxx | 4 |
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 ) |