diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 15:59:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:43 +0000 |
commit | bf48d61f87647a425f50409b11f3ac8e681b14d4 (patch) | |
tree | ee26b7559e79e5132d93519073c17d9c0d666ad3 /cui | |
parent | a83f0c98610bae4eac5cdaf87eddfbeb3a3388f4 (diff) |
coverity#704602 Dereference after null check
Change-Id: I069716ad675a217ecd97aee6b07346cf838fd653
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 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 ); } } |