From 11a0890b6cfeea9c3609ea454882194a2f05d943 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 12 Dec 2014 12:00:42 +0000 Subject: coverity#1257736 Explicit null dereferenced Change-Id: I2cd312255f80e22ead614d0ea12a2130fb8bbeaa --- sw/source/core/doc/doccomp.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw') diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx index 1fab4e4d6665..65073dde0add 100644 --- a/sw/source/core/doc/doccomp.cxx +++ b/sw/source/core/doc/doccomp.cxx @@ -1935,6 +1935,8 @@ sal_uInt16 SaveMergeRedline::InsertRedline(SwPaM* pLastDestRedline) break; case POS_OUTSIDE: + assert(pDestRedl && "is this actually impossible"); + if (pDestRedl) { SwRangeRedline* pCpyRedl = new SwRangeRedline( pDestRedl->GetRedlineData(), *pDStt ); -- cgit