summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 12:41:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 13:03:58 +0000
commit7141cfa6a37209cca989709167937440c4f8aa75 (patch)
tree806366fc5cce47c80dbc121454e6d734f6ef50d2 /sfx2
parenta0bae848d42b675e4638420d632d710ed3cf76c3 (diff)
coverity#440973 Dereference after null check
Change-Id: I24caa53a66da4d724e4f8e5d4b06c7d3e9633f5e
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 413fa9618e92..a9004590e754 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -686,6 +686,7 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const ::com::sun::star::util
// rListener->dispatchFinished potentially calls
// framework::Desktop::terminate -> SfxApplication::Deinitialize ->
// ~CntItemPool:
+ if (pDispatcher)
{
SfxAllItemSet aInternalSet( SFX_APP()->GetPool() );
if (xFrameRef.is()) // an empty set is no problem ... but an empty frame reference can be a problem !