coverity#735837 Explicit null dereferenced
Change-Id: Idaf39928e4f48f8cf823de22e2ded995046624fc
This commit is contained in:
parent
67820a9037
commit
0766b83a2b
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user