[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sfx2/source

Caolán McNamara caolanm at redhat.com
Tue Jun 16 01:45:16 PDT 2015


 sfx2/source/appl/appopen.cxx |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

New commits:
commit 527496750bbead21f33766d6ec0aba02a2380ab2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 16 09:29:39 2015 +0100

    Resolves: tdf#88911 Crash when dragging unsupported url to navigator pane
    
    Change-Id: I9d4fc8e3edac699c8543ab9dce8d0e35bbf40e5b
    (cherry picked from commit 9ef671364ff9fbb552a5433053af9283d12d90c7)

diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index 4793874..bdba6e2 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -1112,10 +1112,14 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
         }
     }
 
-    if ( pLinkItem )
+    if (pLinkItem)
     {
-        SfxPoolItem* pRet = rReq.GetReturnValue()->Clone();
-        pLinkItem->GetValue().Call(pRet);
+        const SfxPoolItem* pRetValue = rReq.GetReturnValue();
+        if (pRetValue)
+        {
+            SfxPoolItem* pClone = pRetValue->Clone();
+            pLinkItem->GetValue().Call(pClone);
+        }
         delete pLinkItem;
     }
 }


More information about the Libreoffice-commits mailing list