diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-05-26 11:25:06 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-05-30 10:19:49 +0200 |
commit | 28bfce94d10d861519f36972913bdd7b02b50605 (patch) | |
tree | 26086ed9e45f3a3cb8de0bd4d8b8b697e2f18743 | |
parent | 63defd57dc3ddeae300c1225367ac38a8ffde959 (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>
(cherry picked from commit 2990a2c2b29ca5c3316f28e5d3be74220c4948a4)
-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 ); |