diff options
Diffstat (limited to 'sd/source/ui/annotations')
-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 ) |