diff --git a/platform/util/src/com/intellij/openapi/util/text/Pluralizer.java b/platform/util/src/com/intellij/openapi/util/text/Pluralizer.java index e041551c975d2..c6226a46557d2 100644 --- a/platform/util/src/com/intellij/openapi/util/text/Pluralizer.java +++ b/platform/util/src/com/intellij/openapi/util/text/Pluralizer.java @@ -83,7 +83,7 @@ static String restoreCase(String word, String result) { if (wc != lc && wc != uc) break; chars[i] = wc; } - if (i < chars.length) { + if (i > 0 && i < chars.length) { char wc = word.charAt(i - 1); char uc = Character.toUpperCase(wc); char lc = Character.toLowerCase(wc);