diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-24 11:40:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-24 13:43:09 +0100 |
commit | 6f32261fcffa8a2cc7e8ef29d805a7318d7b90f8 (patch) | |
tree | 1bf53fc7fd5a968e59e312d0c0f2e9d8f7ab0119 /reportdesign | |
parent | coverity#1237350 use our double-locking templates for this (diff) | |
download | core-6f32261fcffa8a2cc7e8ef29d805a7318d7b90f8.tar.gz core-6f32261fcffa8a2cc7e8ef29d805a7318d7b90f8.zip |
coverity#1224975 Dereference after null check
Change-Id: I89cc31ae5b7c598f16eb3f52d0e4cbce0acf4bc4
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/dlg/CondFormat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/ui/dlg/CondFormat.cxx b/reportdesign/source/ui/dlg/CondFormat.cxx index fcbfbce03bac..fbdd9fc4e157 100644 --- a/reportdesign/source/ui/dlg/CondFormat.cxx +++ b/reportdesign/source/ui/dlg/CondFormat.cxx @@ -509,7 +509,7 @@ namespace rptui pConditionCandidate = pConditionCandidate->GetParent(); pPlaygroundCandidate = pConditionCandidate ? pConditionCandidate->GetParent() : NULL; } - if ( pPlaygroundCandidate == m_pConditionPlayground ) + if (pConditionCandidate && pPlaygroundCandidate == m_pConditionPlayground) { impl_ensureConditionVisible( dynamic_cast< const Condition& >( *pConditionCandidate ).getConditionIndex() ); } |