diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-30 16:59:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-31 09:27:35 +0200 |
commit | 6fe7b0ae629a258649feb5b8dfc87d6579321587 (patch) | |
tree | 4d25ee7eaf05bb61474ba071f5ea5b9215b93104 /sw/source | |
parent | 1fe8479e5ba4ec092d6dc6d88a1edd5fb4487542 (diff) |
Resolves: tdf#119607 crash in calling getPropertyState on TextParagraph
Change-Id: Ib7091473e3547241e95dc3d3921abf650f288aff
Reviewed-on: https://gerrit.libreoffice.org/59824
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/unocore/unocrsrhelper.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx index 4bd17b5c681f..af5322b35d58 100644 --- a/sw/source/core/unocore/unocrsrhelper.cxx +++ b/sw/source/core/unocore/unocrsrhelper.cxx @@ -600,8 +600,11 @@ bool getCursorPropertyValue(const SfxItemPropertySimpleEntry& rEntry SwTextNode* pTextNode = rPam.GetPoint()->nNode.GetNode().GetTextNode(); if (pTextNode) { - uno::Reference<text::XTextContent> xParagraph = SwXParagraph::CreateXParagraph(*pTextNode->GetDoc(), pTextNode); - *pAny <<= xParagraph; + if (pAny) + { + uno::Reference<text::XTextContent> xParagraph = SwXParagraph::CreateXParagraph(*pTextNode->GetDoc(), pTextNode); + *pAny <<= xParagraph; + } } else eNewState = PropertyState_DEFAULT_VALUE; |