From ca1b74f647ebcd5eb8e7e6447d5b21b890d5460f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 6 Jun 2014 10:29:13 +0100 Subject: coverity#704789 Dereference after null check Change-Id: Iac238d68502cab137ce1530bffca4909cd9ea956 --- sfx2/source/appl/workwin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') 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() ); -- cgit