From 65208b7741c1d842b5a5c6822a56cb9d34158dea Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 16 Jun 2017 17:46:12 +0300 Subject: MAINT-7488 FIXED [Windows] Viewer crashes when pasting empty string from clipboard --- indra/llcommon/llstring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/llcommon/llstring.h') diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index 2255e638c2..abe5fda603 100644 --- a/indra/llcommon/llstring.h +++ b/indra/llcommon/llstring.h @@ -1325,6 +1325,10 @@ void LLStringUtilBase::removeCRLF(string_type& string) template void LLStringUtilBase::removeWindowsCR(string_type& string) { + if (string.empty()) + { + return; + } const T LF = 10; const T CR = 13; -- cgit v1.2.3