summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx7
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;