Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a7d117a authored by Yuichiro Hanada's avatar Yuichiro Hanada
Browse files

Ignore the broken file.

bug: 7249561

Change-Id: If001bf75ef12b4d342a77e54706c7fed90c89afb
parent a36c5953
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
    }

    /**