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

Commit afd9b62f authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Throw IOException when dict header cannot be read.

Bug: 13106638
Change-Id: Ib48ef0a191a436552c49b6e817dfa13fe1567ae8
parent bb173540
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();
    }