diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 16:00:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:43 +0000 |
commit | c17b739badaf316ef05671edb927ecdb040a76cd (patch) | |
tree | defcd46905727950d621cdfc416e262232e0d6ed /cui | |
parent | bf48d61f87647a425f50409b11f3ac8e681b14d4 (diff) |
coverity#704601 Dereference after null check
Change-Id: Icfef8f4ded311790a90b61b37c08254592d979ab
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/iconcdlg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 265e10a25e59..661d3d5adf9e 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -463,7 +463,8 @@ void IconChoiceDialog::DeActivatePageImpl () if ( ( DeactivateRC::LeavePage & nRet ) && aTmp.Count() ) { - pExampleSet->Put( aTmp ); + if (pExampleSet) + pExampleSet->Put(aTmp); pOutSet->Put( aTmp ); } } |