summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-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 36bf3318ac21..99451ab8a625 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -1143,7 +1143,9 @@ SdPage* AnnotationManagerImpl::GetLastPage()
SdPage* AnnotationManagerImpl::GetCurrentPage()
{
- return mrBase.GetMainViewShell()->getCurrentPage();
+ if (mrBase.GetMainViewShell().get())
+ return mrBase.GetMainViewShell()->getCurrentPage();
+ return nullptr;
}
AnnotationManager::AnnotationManager( ViewShellBase& rViewShellBase )