[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 30 10:57:11 UTC 2019
sw/source/core/tox/tox.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2941768d4f17f95a7450475d2e3e9173e3aa98fe
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 26 16:59:51 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Sep 30 12:56:20 2019 +0200
null deref
since...
commit a5081700bacb90d8560959a4d65d94a2d4e8dadd
Date: Fri Sep 20 10:31:40 2019 +0200
Change-Id: I4876b0ddeede794d8c638cccb7c825d1db122fdd
Reviewed-on: https://gerrit.libreoffice.org/79652
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index d34c145979e6..7b7bb2e1071b 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -123,7 +123,8 @@ SwTOXMark::SwTOXMark(const SwTOXMark& rCopy)
, m_bAutoGenerated(rCopy.m_bAutoGenerated)
, m_bMainEntry(rCopy.m_bMainEntry)
{
- const_cast<SwTOXMark*>(&rCopy)->GetRegisteredIn()->Add(this);
+ if (auto pRegister = const_cast<SwTOXMark*>(&rCopy)->GetRegisteredIn())
+ pRegister->Add(this);
// Copy AlternativString
m_aAltText = rCopy.m_aAltText;
}
More information about the Libreoffice-commits
mailing list