diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 21:07:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 21:25:17 +0100 |
commit | 16c4dcf4e61bcec42637141293a7ad22a676b741 (patch) | |
tree | a960559e3c71746fce1e05d38ba85b5dc9421f82 | |
parent | 4cc1ed9ae9532c82deace99689e3eee89c39ef9e (diff) |
coverity#704648 Dereference after null check
Change-Id: I52b5fa71a440778d3423db84a3bf374f0c2654b9
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index a428ccdce2b6..c936f7ae05c2 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -3676,7 +3676,7 @@ throw (uno::RuntimeException, std::exception) { if ( pToolBox ) aUIDockingElement.m_aFloatingData.m_aSize = AWTSize(pToolBox->CalcFloatingWindowSizePixel()); - else + else if ( pWindow ) aUIDockingElement.m_aFloatingData.m_aSize = AWTSize(pWindow->GetOutputSizePixel()); } |