diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-03-18 16:23:26 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-03-18 16:24:29 +0100 |
commit | 9fa5e2b62e45843eafac3f34bbea1e57ad36078d (patch) | |
tree | f04b65b4aeff7cdb74ad4dfd7e900a6943b90434 | |
parent | e35ae1b6726166f443e8309b8ce96bc243c8a355 (diff) |
sc lok bccu#1602: Don't crash when the copy functionality is not allowed.
Change-Id: I0fe5871782d5892f9eda201be042648a45b9f9d4
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 183aed8ec556..d21a7a24ede1 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -754,7 +754,7 @@ OString ScModelObj::getTextSelection(const char* pMimeType, OString& rUsedMimeTy else aFlavor.DataType = cppu::UnoType< uno::Sequence<sal_Int8> >::get(); - if (!xTransferable->isDataFlavorSupported(aFlavor)) + if (!xTransferable.is() || !xTransferable->isDataFlavorSupported(aFlavor)) return OString(); uno::Any aAny(xTransferable->getTransferData(aFlavor)); |