From cc39a4b7d131c697d8f207da3acc4bba93cdd5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 23 Feb 2014 13:34:02 +0000 Subject: [PATCH] coverity#704647 Dereference after null check Change-Id: Ifc74e903f13e6065c507d9a90825e588c5e88a42 --- framework/source/layoutmanager/toolbarlayoutmanager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index e495407495b1..9566a414fd62 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -744,9 +744,9 @@ bool ToolbarLayoutManager::dockToolbar( const OUString& rResourceURL, ui::Dockin SolarMutexGuard aGuard; { - if ( pToolBox ) + if (pToolBox) aSize = pToolBox->CalcWindowSizePixel( 1, ImplConvertAlignment( aUIElement.m_aDockedData.m_nDockedArea ) ); - else + else if (pWindow) aSize = pWindow->GetSizePixel(); }