From 69b5df30136b778e23eb31c66b81c5524eae903e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 4 Nov 2014 09:49:30 +0000 Subject: coverity#1213082 Dereference after null check Change-Id: Ifbc5de648c2dac23d8616d436a7a78bf1b2adb0d --- sw/source/core/crsr/crsrsh.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw') diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index dc9fc326f5d6..adce2204a5f5 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -2478,6 +2478,10 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing ) // search over the whole ring bool bGoNext; do { + + if (!pTmp) + break; + const SwPosition *pTmpStt = pTmp->Start(), *pTmpEnd = pTmp->GetPoint() == pTmpStt ? pTmp->GetMark() : pTmp->GetPoint(); -- cgit