summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-22 12:17:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-22 22:45:40 +0200
commit8f98a7c4e5b1f0b249c026577805a378b8a533d5 (patch)
tree674467f7b58c7ca346cd42eff5363c4d7cd9ae2f /sw
parent722c921168fa0152616081c09434b6d0378aa306 (diff)
cid#1448459 Dereference after null check
Change-Id: I0a36171d00c6b72807744db16335a624219c2081 Reviewed-on: https://gerrit.libreoffice.org/76134 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unosett.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx
index 7e32b867274a..8a8a798dd0fd 100644
--- a/sw/source/core/unocore/unosett.cxx
+++ b/sw/source/core/unocore/unosett.cxx
@@ -2145,6 +2145,7 @@ void SwXNumberingRules::setPropertyValue( const OUString& rPropertyName, const A
if(pDocRule)
{
+ assert(m_pDocShell);
m_pDocShell->GetDoc()->SetOutlineNumRule(*pDocRule);
pDocRule.reset();
}