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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user