summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 20:49:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 20:49:48 +0000
commit9e6dfbd2444be53e28d3ca5e8dc786a4099af413 (patch)
treeb466be65964bc623b469931a872a4e5436012b38 /sfx2
parent19c5867f922e9acf0564b6213fa15cc899a77c16 (diff)
coverity#441011 Dereference after null check
Change-Id: I8a3430440bdd8cc1561eb60863c2bda3df8eac6d
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 1fbcba92ef80..413fa9618e92 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -809,7 +809,7 @@ void SAL_CALL SfxDispatchController_Impl::addStatusListener(const ::com::sun::st
::com::sun::star::uno::Any aState;
if ( !pDispatcher && pBindings )
pDispatcher = GetBindings().GetDispatcher_Impl();
- SfxItemState eState = pDispatcher->QueryState( GetId(), aState );
+ SfxItemState eState = pDispatcher ? pDispatcher->QueryState( GetId(), aState ) : SFX_ITEM_DONTCARE;
if ( eState == SFX_ITEM_DONTCARE )
{