diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 13:34:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 14:22:44 +0000 |
commit | cc39a4b7d131c697d8f207da3acc4bba93cdd5cc (patch) | |
tree | ef90631cee6ab2485fa676744d36cc21c17a3695 /framework | |
parent | 2a83910e724d21b774d39f6faf4e7329a6fc5ee8 (diff) |
coverity#704647 Dereference after null check
Change-Id: Ifc74e903f13e6065c507d9a90825e588c5e88a42
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 4 |
1 files 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(); } |