diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 12:00:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 12:00:42 +0000 |
commit | 11a0890b6cfeea9c3609ea454882194a2f05d943 (patch) | |
tree | fe3999046392effb1160f5141596530f9c8af56b /sw | |
parent | efa5db0755f0a0af41b9958ef3d5edeaddaed056 (diff) |
coverity#1257736 Explicit null dereferenced
Change-Id: I2cd312255f80e22ead614d0ea12a2130fb8bbeaa
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doccomp.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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 ); |