From 0766b83a2b461a73bd5574019fae5fd3ac0ff37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 19 Jun 2014 09:18:42 +0100 Subject: [PATCH] coverity#735837 Explicit null dereferenced Change-Id: Idaf39928e4f48f8cf823de22e2ded995046624fc --- sd/source/ui/func/fuinsfil.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;