diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 11:51:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:19:25 +0000 |
commit | 3454a9b34266a8d370306a4de8178ef263f1621f (patch) | |
tree | 3b9dafa1bc7217f7eb778a3a33c31e707c061a1f /cui | |
parent | 12aab9c087770d2cb056f66d5f0f289d63771edd (diff) |
coverity#982453 Dereference after null check
Change-Id: I4d7006ea9212313ef71e0879093d8f0cbc40b34f
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optpath.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index b2daf493944d..f965a745610f 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -638,7 +638,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, PathHdl_Impl) IMPL_LINK( SvxPathTabPage, HeaderSelect_Impl, HeaderBar*, pBar ) { - if ( pBar && pBar->GetCurItemId() != ITEMID_TYPE ) + if (!pBar || pBar->GetCurItemId() != ITEMID_TYPE) return 0; HeaderBarItemBits nBits = pBar->GetItemBits(ITEMID_TYPE); |