diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 14:59:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:17 +0000 |
commit | 237a58a02876dbd69c1474f3a808aa0939dc394d (patch) | |
tree | 356ea78f8db4d87eea9e5ba6ce43a1fe2cc73c0b /sfx2 | |
parent | 280d7e50741e515e7f1566df200188a5c4639911 (diff) |
coverity#704703 Dereference after null check
Change-Id: I272a37a9935785d86ad76db3978cb658573e998c
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dockwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |