sw/source/core/unocore/unostyle.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit ac7ce7a64ef903bad1476f5635a7b2a1e951a7a3 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Mar 25 12:06:20 2019 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Mar 25 16:29:55 2019 +0100 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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 745f06e4ed44..9d0f3ed3c344 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -203,7 +203,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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits