sw/source/core/unocore/unocrsrhelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2a25f32cef037417e399c88c29b0bfe53cb3c5a4
Author: Caolán McNamara <caol...@redhat.com>
Date:   Mon Jul 1 12:56:17 2013 +0100

    Resolves: rhbz#979758 crash on 'Diagrammen in LibreOffice' help page
    
    Change-Id: I269846840b8e2f67838da525c020a305901cf903
    (cherry picked from commit 3090cfc972287da3fbdc567387527b65b3bfd128)
    Reviewed-on: https://gerrit.libreoffice.org/4655
    Reviewed-by: Fridrich Strba <fridr...@documentfoundation.org>
    Tested-by: Fridrich Strba <fridr...@documentfoundation.org>

diff --git a/sw/source/core/unocore/unocrsrhelper.cxx 
b/sw/source/core/unocore/unocrsrhelper.cxx
index d949481..41044de 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);
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to