summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-05 16:49:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-05 20:41:05 +0000
commit76fe205d7e0fe0a73616453209d8094cab9ce79f (patch)
treec2db37df4db13e1a3c2b069a075bfae444a58e40 /sd/source/ui/slideshow
parenta96c4e3b1456d0f11fcd3e3374b0d457374e207b (diff)
coverity#704761 Dereference after null check
Change-Id: I8e65332f202158e503da9b707bb9d6305133e68e
Diffstat (limited to 'sd/source/ui/slideshow')
-rw-r--r--sd/source/ui/slideshow/showwin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/slideshow/showwin.cxx b/sd/source/ui/slideshow/showwin.cxx
index aa4ae8760461..9d9f35c879d6 100644
--- a/sd/source/ui/slideshow/showwin.cxx
+++ b/sd/source/ui/slideshow/showwin.cxx
@@ -481,7 +481,8 @@ void ShowWindow::RestartShow( sal_Int32 nPageIndexToRestart )
// show navigator?
if( mbShowNavigatorAfterSpecialMode )
{
- mpViewShell->GetViewFrame()->ShowChildWindow( SID_NAVIGATOR, sal_True );
+ if (mpViewShell)
+ mpViewShell->GetViewFrame()->ShowChildWindow( SID_NAVIGATOR, sal_True );
mbShowNavigatorAfterSpecialMode = false;
}
}