From fb67ee195d96f67a222ee65fc23317b0fe61e0bd Mon Sep 17 00:00:00 2001 From: bwolf200 Date: Wed, 8 Apr 2015 11:16:23 -0700 Subject: [PATCH] issue 39 - fixed index out of range bug --- src/com/comcast/cmb/common/util/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/comcast/cmb/common/util/Util.java b/src/com/comcast/cmb/common/util/Util.java index 21e83f0c..fd4f4b17 100644 --- a/src/com/comcast/cmb/common/util/Util.java +++ b/src/com/comcast/cmb/common/util/Util.java @@ -158,7 +158,7 @@ public static boolean isValidUnicode(String msg) { for (int i = 0; i < chs.length; i++) { if (chs[i] == '\n' || chs[i] == '\t' || chs[i] == '\r' || (chs[i] >= '\u0020' && chs[i] <= '\uD7FF') || (chs[i] >= '\uE000' && chs[i] <= '\uFFFD')) { continue; - } else if (i= '\uD800' && chs[i+1] >= '\uDC00') && (chs[i] <= '\uDBFF' && chs[i+1] <= '\uDFFF')) { i++; // skip the next char continue;