diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 11:08:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 11:32:57 +0100 |
commit | 4da7559ab335d342ebc5b5f06539b5fc4ea4a3cb (patch) | |
tree | 48aa36e20ad026e66521c1f25962dcfdac5b92d9 /sw | |
parent | e9585fc11bb39edc1f02b20b482c39ba8013f381 (diff) |
coverity#1219787 Explicit null dereferenced
Change-Id: Idb13242d25583b1c323b5a20ecc10f10b8b82465
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/textboxhelper.cxx | 2 |
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) |