From eeddfe3a258fd68f08b203f2bc6772989b882b47 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 16 Jun 2017 17:46:12 +0300 Subject: [PATCH] MAINT-7488 FIXED [Windows] Viewer crashes when pasting empty string from clipboard --- indra/llcommon/llstring.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index 5261b26fd0..181d7f3334 100644 --- a/indra/llcommon/llstring.h +++ b/indra/llcommon/llstring.h @@ -1330,6 +1330,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;