diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-10 20:50:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-10 22:14:59 +0000 |
commit | bd17307216b07599cbaa7e0111dc784e3af20ed2 (patch) | |
tree | 3bcde37c1d7e8e90bf85f0587965cc704f4c17aa /sfx2 | |
parent | c27d0a583d5748bfe68bcf3be73a33e8d2823f8f (diff) |
coverity#1355501 Dereference after null check
Change-Id: I84001559ed2bafee16a176eb11ea991397b733bc
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 7851e1f0dfbb..8c4a2f9b5f11 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1368,7 +1368,7 @@ void SfxDispatcher::_Update_Impl( bool bUIActive, bool bIsMDIApp, bool bIsIPOwne if ( bIsMDIApp || bIsIPOwner ) { - sal_uInt32 nId = pIFace->GetStatusBarId(); + sal_uInt32 nId = pIFace ? pIFace->GetStatusBarId() : 0; if ( nId ) { nStatBarId = nId; |