summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fuinsfil.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/func/fuinsfil.cxx')
-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;