All pastes #2075473 Raw Edit

Mine

public text v1 · immutable
#2075473 ·published 2011-06-06 10:13 UTC
rendered paste body
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -863,8 +863,10 @@ OUString XclXmlUtils::ToOUString( const ScfUInt16Vec& rBuf, sal_Int32 nStart, sa
 {
     if( nLength == -1 )
         nLength = rBuf.size();
-
-    return OUString( &rBuf[nStart], nLength );
+       if (!rBuf.empty())
+           return OUString( &rBuf[nStart], nLength );
+       else
+               return OUString();
 }

 OUString XclXmlUtils::ToOUString( const String& s )