summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-06 10:29:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-06 11:32:54 +0100
commitca1b74f647ebcd5eb8e7e6447d5b21b890d5460f (patch)
tree7c3f074bd2dc8c3708424f28cdeb1d67505c66ea /sfx2
parent9af87824936f2334cc6420768e81a624f36a1dc8 (diff)
coverity#704789 Dereference after null check
Change-Id: Iac238d68502cab137ce1530bffca4909cd9ea956
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/workwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index e952a7414468..392ba876a134 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -1785,7 +1785,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
{
case SFX_SETDOCKINGRECTS :
{
- if ( nPos == USHRT_MAX )
+ if (nPos == USHRT_MAX || !pDockWin)
return;
Rectangle aOuterRect( GetTopRect_Impl() );