From 5d6b8e181811e10b38dd30f4ba33757bb2162552 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 14 Aug 2012 14:45:17 +0900 Subject: [PATCH] Fix a bug that would prevent spell checking java.lang.ArrayIndexOutOfBoundsException: [I offset=0 length=528 src.length=512 com.android.inputmethod.keyboard.ProximityInfo .setProximityInfoNative(Native Method) com.android.inputmethod.keyboard.ProximityInfo .createSpellCheckerProximityInfo(ProximityInfo.java:85) com.android.inputmethod.latin.spellcheck.AndroidSpellCheckerService .createDictAndProximity(AndroidSpellCheckerService.java:411) The array was too small with respect with the passed size. Change-Id: I7777d7aecd17375d3fbf82854a66eb7a5a289ce6 --- .../inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java b/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java index 0103e8423..bd92d883b 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java @@ -111,6 +111,7 @@ public class SpellCheckerProximityInfo { NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, + NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, }; static { buildProximityIndices(PROXIMITY, INDICES);