summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-01 12:56:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-01 12:56:17 +0100
commit3090cfc972287da3fbdc567387527b65b3bfd128 (patch)
tree9ec1759a192e449c574c5b24a41b5df381548a5e /sw
parentee5ea3b629c55f628ee23078f4c1800d83b8514b (diff)
Resolves: rhbz#979758 crash on 'Diagrammen in LibreOffice' help page
Change-Id: I269846840b8e2f67838da525c020a305901cf903
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index deeb5ba397d1..66202c0aa0cb 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -176,7 +176,7 @@ void GetSelectableFromAny(uno::Reference<uno::XInterface> const& xIfc,
if (pRanges)
{
SwUnoCrsr const* pUnoCrsr = pRanges->GetCursor();
- if (pUnoCrsr->GetDoc() == &rTargetDoc)
+ if (pUnoCrsr && pUnoCrsr->GetDoc() == &rTargetDoc)
{
o_rpPaM = lcl_createPamCopy(*pUnoCrsr);
}