aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-09 13:17:48 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-09 13:17:48 -0400
commit0f3b8e8966d3da99e7844d6ca8083cccf23bef01 (patch)
tree856528ea29b8a78b2e6f4173af9258bcf40e6f55 /src
parentb7a94fd7d66ad2cb73ed6c7226de5535935ab8b0 (diff)
parenteef539c3f2b60af74a3ce05ac68288e7f86709ae (diff)
downloadlatinime-0f3b8e8966d3da99e7844d6ca8083cccf23bef01.tar.gz
latinime-0f3b8e8966d3da99e7844d6ca8083cccf23bef01.tar.xz
latinime-0f3b8e8966d3da99e7844d6ca8083cccf23bef01.zip
Merge change Ieef539c3 into eclair
* changes: Fix a potential IllegalArgumentException caught by monkeys. #2176776
Diffstat (limited to 'src')
-rw-r--r--src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java
index 8c9102d8c..ae296aff6 100644
--- a/src/com/android/inputmethod/latin/LatinIME.java
+++ b/src/com/android/inputmethod/latin/LatinIME.java
@@ -693,6 +693,10 @@ public class LatinIME extends InputMethodService
}
if (mInputView.isShifted()) {
// TODO: This doesn't work with ß, need to fix it in the next release.
+ if (keyCodes == null || keyCodes[0] < Character.MIN_CODE_POINT
+ || keyCodes[0] > Character.MAX_CODE_POINT) {
+ return;
+ }
primaryCode = new String(keyCodes, 0, 1).toUpperCase().charAt(0);
}
if (mPredicting) {