Kaydet (Commit) 4da7559a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1219787 Explicit null dereferenced

Change-Id: Idb13242d25583b1c323b5a20ecc10f10b8b82465
üst e9585fc1
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment