[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sw/source
Michael Stahl
mstahl at redhat.com
Mon May 29 08:08:31 UTC 2017
sw/source/core/para/paratr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2990a2c2b29ca5c3316f28e5d3be74220c4948a4
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri May 26 11:25:06 2017 +0200
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 at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
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 );
More information about the Libreoffice-commits
mailing list