coverity#735837 Explicit null dereferenced

Change-Id: Idaf39928e4f48f8cf823de22e2ded995046624fc
This commit is contained in:
Caolán McNamara 2014-06-19 09:18:42 +01:00
parent 67820a9037
commit 0766b83a2b

View File

@ -567,7 +567,7 @@ void FuInsertFile::InsTextOrRTFinOlMode(SfxMedium* pMedium)
Paragraph* pPara = aSelList.empty() ? NULL : *(aSelList.begin()); Paragraph* pPara = aSelList.empty() ? NULL : *(aSelList.begin());
// what should we insert? // what should we insert?
while( !pDocliner->HasParaFlag( pPara, PARAFLAG_ISPAGE ) ) while (pPara && !pDocliner->HasParaFlag(pPara, PARAFLAG_ISPAGE))
pPara = pDocliner->GetParent(pPara); pPara = pDocliner->GetParent(pPara);
sal_Int32 nTargetPos = pDocliner->GetAbsPos(pPara) + 1; sal_Int32 nTargetPos = pDocliner->GetAbsPos(pPara) + 1;