Ignore the broken file.
bug: 7249561 Change-Id: If001bf75ef12b4d342a77e54706c7fed90c89afbmain
parent
a36c595353
commit
7a7d117aa7
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue