diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-05-26 11:25:06 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-29 10:08:07 +0200 |
commit | 2990a2c2b29ca5c3316f28e5d3be74220c4948a4 (patch) | |
tree | 8dbb2dda0ff90026b67a89e9b4d81f85fad84a0f | |
parent | 9c89d41ed44c1a4126b82f0c05768f5d640f741b (diff) |
sw: coverity#1409899 Null pointer dereferences
Change-Id: I152def3c629980aedb705ac511f154cc6e9d1b0f
(cherry picked from commit 40587c191ecf6ec667f40e9148c197246e3c45a5)
Reviewed-on: https://gerrit.libreoffice.org/38060
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sw/source/core/para/paratr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx index 8fc36009722b..bdc07540105f 100644 --- a/sw/source/core/para/paratr.cxx +++ b/sw/source/core/para/paratr.cxx @@ -77,7 +77,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 ); |