summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/annotations')
-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 )