summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-14 13:24:54 +0200
committerNoel Grandin <noel@peralex.com>2014-02-17 14:04:29 +0200
commit24057a7823c15bac4ec5f4229c20cf61f660c6a0 (patch)
treee6a171372538aed67713d0345e16c30eb1ced110
parent40dcb18c5fe6dc9e7f904e5919e23869bbff1ac0 (diff)
cid#705944 dereference before null check
Change-Id: If6e70f97ec1862dfda01f55ecac06b4b2492d9ec
-rw-r--r--sw/source/ui/app/docsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx
index c5e99d4d1ff3..e6294d3d3aca 100644
--- a/sw/source/ui/app/docsh.cxx
+++ b/sw/source/ui/app/docsh.cxx
@@ -269,8 +269,7 @@ sal_Bool SwDocShell::ConvertFrom( SfxMedium& rMedium )
// Maybe put away one old Doc
if ( pDoc != pRdr->GetDoc() )
{
- if( pDoc )
- RemoveLink();
+ RemoveLink();
pDoc = pRdr->GetDoc();
AddLink();