diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-17 11:26:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-17 14:04:34 +0200 |
commit | 2b3b3373eb13e12204180d634de5063add6b4f8e (patch) | |
tree | a000295cee24ed9acc9e62f48465ce9d4075d4eb /framework | |
parent | d22d2fb1dee46973d8608dd935d476bce2c2ad82 (diff) |
cid#736778 dereference before null check
Change-Id: I2d26b5447e06e0b0d08e45452ef5507b75a4d3ff
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 49bb97325861..f4a599a060a9 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -926,7 +926,7 @@ void ToolBarManager::CreateControllers() if (( aCommandURL == aLoadURL ) && ( !m_pToolBar->IsItemVisible(nId))) bCreate = sal_False; - if ( !xController.is() && m_pToolBar && bCreate ) + if ( !xController.is() && bCreate ) { pController = CreateToolBoxController( m_xFrame, m_pToolBar, nId, aCommandURL ); if ( !pController ) |