From 237a58a02876dbd69c1474f3a808aa0939dc394d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 2 Mar 2014 14:59:42 +0000 Subject: coverity#704703 Dereference after null check Change-Id: I272a37a9935785d86ad76db3978cb658573e998c --- sfx2/source/dialog/dockwin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index 78c1195ae5d6..122401419b19 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -966,7 +966,7 @@ void SfxDockingWindow::Initialize(SfxChildWinInfo *pInfo) return; } - if ( pInfo->nFlags & SFX_CHILDWIN_FORCEDOCK ) + if (pInfo && (pInfo->nFlags & SFX_CHILDWIN_FORCEDOCK)) pImp->bDockingPrevented = sal_True; pImp->aSplitSize = GetOutputSizePixel(); @@ -981,7 +981,7 @@ void SfxDockingWindow::Initialize(SfxChildWinInfo *pInfo) } sal_Bool bVertHorzRead( sal_False ); - if ( !pInfo->aExtraString.isEmpty() ) + if (pInfo && !pInfo->aExtraString.isEmpty()) { // get information about alignment, split size and position in SplitWindow OUString aStr; -- cgit