summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-28 10:32:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-28 13:14:00 +0000
commit0a4f224c0ecb1871f0c53c4163a2ffb47f11bfd2 (patch)
treeca09bab6355a5659b34f9b50a391bd258d9ba250 /cui
parentf7d3344fdf45f90839711b250b15960f118ab6e3 (diff)
coverity#736139 Dereference null return value
Change-Id: Ibb178c04119373ad848745fe91fea70cbbb0e8a5
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/linkdlg.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index b7c95ffac19c..9625ebb6d627 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -373,8 +373,12 @@ IMPL_LINK( SvBaseLinksDlg, ChangeSourceClickHdl, PushButton *, pPushButton )
Links().FirstSelected() :
Links().NextSelected( pEntry );
DBG_ASSERT(pEntry,"Where is the entry?");
+ if (!pEntry)
+ continue;
pLink = (SvBaseLink*)pEntry->GetUserData();
DBG_ASSERT(pLink,"Where is the link?");
+ if (!pLink)
+ continue;
pLinkMgr->GetDisplayNames( pLink, &sType, &sFile, &sLinkName, &sFilter );
INetURLObject aUrl_(sFile);
INetURLObject aUrl2(aPath, INET_PROT_FILE);