summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-06-27 09:27:50 +0200
committerCaolán McNamara <caolanm@redhat.com>2020-06-27 16:27:13 +0200
commit04ca5efc800c6b7a6e98e4278eb8be6ac6737fe9 (patch)
tree5bb5557f5664bbd9b2c6927a83f815644f434726
parent7e8e53bb6ad01afe3315697915f2228ed5e07146 (diff)
cid#1464974: Null pointer dereferences (sw/unosett)
Change-Id: I4ea6de59ce1d1cb3133b0fb57176caee5497878f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97276 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/core/unocore/unosett.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx
index 817938749bf7..81f1a6a2e33a 100644
--- a/sw/source/core/unocore/unosett.cxx
+++ b/sw/source/core/unocore/unosett.cxx
@@ -1771,8 +1771,8 @@ void SwXNumberingRules::SetPropertiesToNumFormat(
{
OUString sBulletFontName;
rProp.Value >>= sBulletFontName;
- SwDocShell* pLclDocShell = pDoc->GetDocShell();
- if( !sBulletFontName.isEmpty() && pLclDocShell )
+ SwDocShell* pLclDocShell = nullptr;
+ if( !sBulletFontName.isEmpty() && pDoc && (pLclDocShell = pDoc->GetDocShell()) )
{
const SvxFontListItem* pFontListItem =
static_cast<const SvxFontListItem* >(pLclDocShell