tdf#170803 Insert a hyperlink crashes when system clipboard empty

I can see no reason why we should throw an exception here.

Change-Id: Ia98dc97c4fd25c4ca9102ef02be5851c0a4f7dd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202204
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2026-03-20 06:20:47 +01:00
parent f9e47d5ac3
commit 6ac395530d
+1 -6
View File
@@ -150,12 +150,7 @@ Any byteStreamToAny(Sequence<sal_Int8>& aByteStream, const Type& aRequestedDataT
Any aAny;
if ( aRequestedDataType == CPPUTYPE_OUSTRING )
{
OUString str = byteStreamToOUString( aByteStream );
if (str.isEmpty())
throw RuntimeException();
aAny <<= str;
}
aAny <<= byteStreamToOUString( aByteStream );
else
aAny <<= aByteStream;