summaryrefslogtreecommitdiff
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
parentbf48d61f87647a425f50409b11f3ac8e681b14d4 (diff)
coverity#704601 Dereference after null check
Change-Id: Icfef8f4ded311790a90b61b37c08254592d979ab
-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 );
}
}