diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-28 10:33:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-28 13:14:00 +0000 |
commit | dc671f6d3ae6d5c23f6a44d2efdc0851365ff529 (patch) | |
tree | 3b72cbfbf879ca45e018618919215781a3b82196 /cui/source | |
parent | 0a4f224c0ecb1871f0c53c4163a2ffb47f11bfd2 (diff) |
coverity#736138 Dereference null return value
Change-Id: I931d2f5061a5fb048e2fd61267d4f8acb90f2cf5
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/linkdlg.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx index 9625ebb6d627..323354cd904b 100644 --- a/cui/source/dialogs/linkdlg.cxx +++ b/cui/source/dialogs/linkdlg.cxx @@ -174,8 +174,12 @@ IMPL_LINK( SvBaseLinksDlg, LinksSelectHdl, SvTabListBox *, pSvTabListBox ) pEntry = i == 0 ? pSvTabListBox->FirstSelected() : pSvTabListBox->NextSelected(pEntry); DBG_ASSERT(pEntry, "Wo ist der Entry?"); + if (!pEntry) + continue; pLink = (SvBaseLink*)pEntry->GetUserData(); DBG_ASSERT(pLink, "Wo ist der Link?"); + if (!pLink) + continue; if( (OBJECT_CLIENT_FILE & pLink->GetObjType()) != OBJECT_CLIENT_FILE ) pSvTabListBox->Select( pEntry, false ); |