diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 10:16:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 12:12:28 +0000 |
commit | 9792dea1c0d21861999291f207a5a99a4eea9472 (patch) | |
tree | 6924d115207c0e32ad257f839a6b7acde6ca68c0 /cui | |
parent | b399e67ee271c83b424db3bf9c328bed27214ea5 (diff) |
coverity#982452 Dereference after null check
Change-Id: Icd22b797b5860a007b08f860ae5a728664b9c175
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/dbregister.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx index f11a219b9020..4ea648141bd0 100644 --- a/cui/source/options/dbregister.cxx +++ b/cui/source/options/dbregister.cxx @@ -346,7 +346,7 @@ IMPL_LINK( DbRegistrationOptionsPage, HeaderEndDrag_Impl, HeaderBar*, pBar ) { assert(pBar); - if ( pBar && !pBar->GetCurItemId() ) + if (!pBar || !pBar->GetCurItemId()) return 0; if ( !pBar->IsItemMode() ) |