summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-04 09:49:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-04 20:44:52 +0000
commit69b5df30136b778e23eb31c66b81c5524eae903e (patch)
treeab5e33c29550157dcc2f60fa09f2070094dee729 /sw
parent7f21b5629379cdb8407c37e6fcb85b4cc04cb525 (diff)
coverity#1213082 Dereference after null check
Change-Id: Ifbc5de648c2dac23d8616d436a7a78bf1b2adb0d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/crsrsh.cxx4
1 files changed, 4 insertions, 0 deletions
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();