summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-21 15:59:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-21 17:05:43 +0000
commitbf48d61f87647a425f50409b11f3ac8e681b14d4 (patch)
treeee26b7559e79e5132d93519073c17d9c0d666ad3 /cui
parentcoverity#1399027 Dereference after null check (diff)
downloadcore-bf48d61f87647a425f50409b11f3ac8e681b14d4.tar.gz
core-bf48d61f87647a425f50409b11f3ac8e681b14d4.zip
coverity#704602 Dereference after null check
Change-Id: I069716ad675a217ecd97aee6b07346cf838fd653
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 d58c488b5bc5..265e10a25e59 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -703,7 +703,8 @@ void IconChoiceDialog::Ok()
if ( pPage->FillItemSet( &aTmp ) )
{
- pExampleSet->Put( aTmp );
+ if (pExampleSet)
+ pExampleSet->Put(aTmp);
pOutSet->Put( aTmp );
}
}