diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-24 14:32:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-24 14:32:36 +0000 |
commit | 1f22bf4c23f17debb45395d47a8499be9b746c84 (patch) | |
tree | fcc17772a1bcb06ce918c127b1fb958ed7d2ab4b /sd | |
parent | 32d4c191b1195be1061dfb6055908461e25a28fe (diff) |
coverity#1265801 Dereference null return value
Change-Id: I3cde11175ea07c6ce0b2828250fc3d942a41066c
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews6.cxx | 6 |
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 ) { |