sw/source/core/para/paratr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2990a2c2b29ca5c3316f28e5d3be74220c4948a4 Author: Michael Stahl <mst...@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 <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits