summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-06 11:08:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-06 11:32:57 +0100
commit4da7559ab335d342ebc5b5f06539b5fc4ea4a3cb (patch)
tree48aa36e20ad026e66521c1f25962dcfdac5b92d9 /sw
parente9585fc11bb39edc1f02b20b482c39ba8013f381 (diff)
coverity#1219787 Explicit null dereferenced
Change-Id: Idb13242d25583b1c323b5a20ecc10f10b8b82465
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/textboxhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx
index e2b7d126ddef..0741dd81ba59 100644
--- a/sw/source/core/doc/textboxhelper.cxx
+++ b/sw/source/core/doc/textboxhelper.cxx
@@ -153,7 +153,7 @@ uno::Any SwTextBoxHelper::getByIndex(SdrPage* pPage, sal_Int32 nIndex, std::list
++nCount;
}
assert(pRet);
- return uno::makeAny(uno::Reference<drawing::XShape>(pRet->getUnoShape(), uno::UNO_QUERY));
+ return pRet ? uno::makeAny(uno::Reference<drawing::XShape>(pRet->getUnoShape(), uno::UNO_QUERY)) : uno::Any();
}
SwFrmFmt* SwTextBoxHelper::findTextBox(SwFrmFmt* pShape)