From 7a7d117aa7e7157ed429d68c4797218476151d8d Mon Sep 17 00:00:00 2001 From: Yuichiro Hanada Date: Fri, 28 Sep 2012 14:14:31 +0900 Subject: [PATCH] Ignore the broken file. bug: 7249561 Change-Id: If001bf75ef12b4d342a77e54706c7fed90c89afb --- .../com/android/inputmethod/latin/UserHistoryDictIOUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/UserHistoryDictIOUtils.java b/java/src/com/android/inputmethod/latin/UserHistoryDictIOUtils.java index 2cb29d310..e39011145 100644 --- a/java/src/com/android/inputmethod/latin/UserHistoryDictIOUtils.java +++ b/java/src/com/android/inputmethod/latin/UserHistoryDictIOUtils.java @@ -180,12 +180,14 @@ public final class UserHistoryDictIOUtils { try { BinaryDictIOUtils.readUnigramsAndBigramsBinary(buffer, unigrams, frequencies, bigrams); - addWordsFromWordMap(unigrams, frequencies, bigrams, dict); } catch (IOException e) { Log.e(TAG, "IO exception while reading file: " + e); } catch (UnsupportedFormatException e) { Log.e(TAG, "Unsupported format: " + e); + } catch (ArrayIndexOutOfBoundsException e) { + Log.e(TAG, "ArrayIndexOutOfBoundsException while reading file: " + e); } + addWordsFromWordMap(unigrams, frequencies, bigrams, dict); } /**