summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-24 14:32:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-24 14:32:36 +0000
commit1f22bf4c23f17debb45395d47a8499be9b746c84 (patch)
treefcc17772a1bcb06ce918c127b1fb958ed7d2ab4b /sd/source
parent32d4c191b1195be1061dfb6055908461e25a28fe (diff)
coverity#1265801 Dereference null return value
Change-Id: I3cde11175ea07c6ce0b2828250fc3d942a41066c
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/drviews6.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews6.cxx b/sd/source/ui/view/drviews6.cxx
index d1340419abd8..9ceea4d53566 100644
--- a/sd/source/ui/view/drviews6.cxx
+++ b/sd/source/ui/view/drviews6.cxx
@@ -151,8 +151,10 @@ void DrawViewShell::ExecAnimationWin( SfxRequest& rReq )
AnimationWindow* pAnimWin;
sal_uInt16 nId = AnimationChildWindow::GetChildWindowId();
- pAnimWin = static_cast<AnimationWindow*>(
- GetViewFrame()->GetChildWindow(nId)->GetWindow());
+ SfxChildWindow* pWnd = GetViewFrame()->GetChildWindow(nId);
+
+ pAnimWin = pWnd ? static_cast<AnimationWindow*>(
+ GetViewFrame()->GetChildWindow(nId)->GetWindow()) : NULL;
if ( pAnimWin )
{