summaryrefslogtreecommitdiff
path: root/sw/source/core/para
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-05-26 11:25:06 +0200
committerMichael Stahl <mstahl@redhat.com>2017-05-26 11:26:12 +0200
commit40587c191ecf6ec667f40e9148c197246e3c45a5 (patch)
tree4794b9ade5c6f58c78a52b464e64e6ea9722e0f6 /sw/source/core/para
parentf09be32d0fcb176527b41cedc37814d5ed7ccad5 (diff)
sw: coverity#1409899 Null pointer dereferences
Change-Id: I152def3c629980aedb705ac511f154cc6e9d1b0f
Diffstat (limited to 'sw/source/core/para')
-rw-r--r--sw/source/core/para/paratr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx
index aa76115b6528..c5eb8ecefb36 100644
--- a/sw/source/core/para/paratr.cxx
+++ b/sw/source/core/para/paratr.cxx
@@ -64,7 +64,7 @@ SwFormatDrop::~SwFormatDrop()
void SwFormatDrop::SetCharFormat( SwCharFormat *pNew )
{
- assert(!pNew->IsDefault()); // expose cases that lead to use-after-free
+ assert(!pNew || !pNew->IsDefault()); // expose cases that lead to use-after-free
// Rewire
if ( GetRegisteredIn() )
GetRegisteredInNonConst()->Remove( this );