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

Commit d10e2d85 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Throw IOException when dict header cannot be read."

parents 475f9f35 afd9b62f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -53,6 +53,10 @@ public class Ver4DictDecoder extends AbstractDictDecoder {

    @Override
    public DictionaryHeader readHeader() throws IOException, UnsupportedFormatException {
        final DictionaryHeader header = mBinaryDictionary.getHeader();
        if (header == null) {
            throw new IOException("Cannot read the dictionary header.");
        }
        return mBinaryDictionary.getHeader();
    }