Kaydet (Commit) 5a1a10e8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736855 Dereference before null check

Change-Id: I3074846fc5609f30fa1b545e07657c95347f640d
üst b1105961
...@@ -516,7 +516,7 @@ sal_Int32 RtfSdrExport::StartShape() ...@@ -516,7 +516,7 @@ sal_Int32 RtfSdrExport::StartShape()
lcl_AppendSP(m_rAttrOutput.RunText(), "wzName", msfilter::rtfutil::OutString(m_pSdrObject->GetTitle(), m_rExport.eCurrentEncoding)); lcl_AppendSP(m_rAttrOutput.RunText(), "wzName", msfilter::rtfutil::OutString(m_pSdrObject->GetTitle(), m_rExport.eCurrentEncoding));
// now check if we have some text // now check if we have some text
const SdrTextObj* pTxtObj = PTR_CAST(SdrTextObj, m_pSdrObject); const SdrTextObj* pTxtObj = dynamic_cast<const SdrTextObj*>(m_pSdrObject);
if (pTxtObj) if (pTxtObj)
{ {
const OutlinerParaObject* pParaObj = 0; const OutlinerParaObject* pParaObj = 0;
......
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