Kaydet (Commit) b428fda3 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

don't access empty container, related fdo#33698

Change-Id: I6deb23c9f5cd1c60e2b478afd67a5196f45d3c43
üst cc478960
......@@ -757,6 +757,9 @@ OString XclXmlUtils::ToOString( const ScAddress& rAddress )
OString XclXmlUtils::ToOString( const ScfUInt16Vec& rBuffer )
{
if(rBuffer.empty())
return OString();
const sal_uInt16* pBuffer = &rBuffer [0];
return OString( pBuffer, rBuffer.size(), RTL_TEXTENCODING_UTF8 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment