am e7ad9084: am 7a7d117a: Ignore the broken file.

* commit 'e7ad90840786566a2f36b4aa35893bf76449b2ce':
  Ignore the broken file.
main
Yuichiro Hanada 2012-09-28 00:37:48 -07:00 committed by Android Git Automerger
commit acaf2bedc1
1 changed files with 3 additions and 1 deletions

View File

@ -180,12 +180,14 @@ public final class UserHistoryDictIOUtils {
try { try {
BinaryDictIOUtils.readUnigramsAndBigramsBinary(buffer, unigrams, frequencies, BinaryDictIOUtils.readUnigramsAndBigramsBinary(buffer, unigrams, frequencies,
bigrams); bigrams);
addWordsFromWordMap(unigrams, frequencies, bigrams, dict);
} catch (IOException e) { } catch (IOException e) {
Log.e(TAG, "IO exception while reading file: " + e); Log.e(TAG, "IO exception while reading file: " + e);
} catch (UnsupportedFormatException e) { } catch (UnsupportedFormatException e) {
Log.e(TAG, "Unsupported format: " + e); Log.e(TAG, "Unsupported format: " + e);
} catch (ArrayIndexOutOfBoundsException e) {
Log.e(TAG, "ArrayIndexOutOfBoundsException while reading file: " + e);
} }
addWordsFromWordMap(unigrams, frequencies, bigrams, dict);
} }
/** /**