summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-21 16:00:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-21 17:05:43 +0000
commitc17b739badaf316ef05671edb927ecdb040a76cd (patch)
treedefcd46905727950d621cdfc416e262232e0d6ed /cui
parentcoverity#704602 Dereference after null check (diff)
downloadcore-c17b739badaf316ef05671edb927ecdb040a76cd.tar.gz
core-c17b739badaf316ef05671edb927ecdb040a76cd.zip
coverity#704601 Dereference after null check
Change-Id: Icfef8f4ded311790a90b61b37c08254592d979ab
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/iconcdlg.cxx3
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 );
}
}