summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-16 09:29:39 +0100
committerMichael Stahl <mstahl@redhat.com>2015-06-18 12:11:57 +0000
commitc6ae5e6bb11e0cb810df61a888e62dde831eb60d (patch)
tree4b64a6db15b866762df5768687628b22d9a041df /sfx2
parenta2d8798e42cc11c0ed414014a8453e89bb6ab410 (diff)
Resolves: tdf#88911 Crash when dragging unsupported url to navigator pane
Change-Id: I9d4fc8e3edac699c8543ab9dce8d0e35bbf40e5b (cherry picked from commit 9ef671364ff9fbb552a5433053af9283d12d90c7) (cherry picked from commit 527496750bbead21f33766d6ec0aba02a2380ab2) Reviewed-on: https://gerrit.libreoffice.org/16304 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appopen.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index 742d84195511..2339d3d99111 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -1118,10 +1118,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;
}
}