diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-25 12:06:20 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-10-10 22:46:30 +0200 |
commit | d15892275af19df723ffcefad877683865451c78 (patch) | |
tree | 00df49b7b12c3ecc95d1875d487e95147658ce10 | |
parent | ac69dd65be82cd4c72b9114be4e05fa5af5013f0 (diff) |
Resolves: tdf#124142 don't deref nullptr
Change-Id: Ie14600e9f9a1e1c4e99c7a872f5d677453481888
Reviewed-on: https://gerrit.libreoffice.org/69666
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit ac7ce7a64ef903bad1476f5635a7b2a1e951a7a3)
Reviewed-on: https://gerrit.libreoffice.org/69694
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 3839de130984..a13e01ee30ab 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -193,7 +193,8 @@ namespace sw , m_pBasePool(pDocShell->GetStyleSheetPool()) , m_pDocShell(pDocShell) { - StartListening(*m_pBasePool); + if (m_pBasePool) //tdf#124142 html docs can have no styles + StartListening(*m_pBasePool); } //XIndexAccess |