diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-06-16 17:46:12 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-06-16 17:46:12 +0300 |
commit | 65208b7741c1d842b5a5c6822a56cb9d34158dea (patch) | |
tree | eba6df6fb1e1c38269e732f2458fec01c3be0a51 | |
parent | 341ecb2324d7895977a29e11afa9657a27da5912 (diff) |
MAINT-7488 FIXED [Windows] Viewer crashes when pasting empty string from clipboard
-rw-r--r-- | indra/llcommon/llstring.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<T>::removeCRLF(string_type& string) template<class T> void LLStringUtilBase<T>::removeWindowsCR(string_type& string) { + if (string.empty()) + { + return; + } const T LF = 10; const T CR = 13; |