Kaydet (Commit) cbe2b9cb authored tarafından Caolán McNamara's avatar Caolán McNamara

afl-eventtesting: deref of null GetMainViewShell

Change-Id: Ie6863f446aa688bc1bb3f725ee31e9984dadc7a4
üst 27ccddf5
...@@ -1140,7 +1140,9 @@ SdPage* AnnotationManagerImpl::GetLastPage() ...@@ -1140,7 +1140,9 @@ SdPage* AnnotationManagerImpl::GetLastPage()
SdPage* AnnotationManagerImpl::GetCurrentPage() SdPage* AnnotationManagerImpl::GetCurrentPage()
{ {
return mrBase.GetMainViewShell()->getCurrentPage(); if (rBase.GetMainViewShell().get())
mrBase.GetMainViewShell()->getCurrentPage();
return nullptr;
} }
AnnotationManager::AnnotationManager( ViewShellBase& rViewShellBase ) AnnotationManager::AnnotationManager( ViewShellBase& rViewShellBase )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment