summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-19 09:18:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-19 10:26:50 +0100
commit0766b83a2b461a73bd5574019fae5fd3ac0ff37f (patch)
treec50d483c3c923886445cf0c687f62dc37a9425b7
parent67820a90370513cd65cd7f042c1d0dea6fb0965f (diff)
coverity#735837 Explicit null dereferenced
Change-Id: Idaf39928e4f48f8cf823de22e2ded995046624fc
-rw-r--r--sd/source/ui/func/fuinsfil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx
index a22e877f2f86..6ba1ebeffd5e 100644
--- a/sd/source/ui/func/fuinsfil.cxx
+++ b/sd/source/ui/func/fuinsfil.cxx
@@ -567,7 +567,7 @@ void FuInsertFile::InsTextOrRTFinOlMode(SfxMedium* pMedium)
Paragraph* pPara = aSelList.empty() ? NULL : *(aSelList.begin());
// what should we insert?
- while( !pDocliner->HasParaFlag( pPara, PARAFLAG_ISPAGE ) )
+ while (pPara && !pDocliner->HasParaFlag(pPara, PARAFLAG_ISPAGE))
pPara = pDocliner->GetParent(pPara);
sal_Int32 nTargetPos = pDocliner->GetAbsPos(pPara) + 1;