mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Throw IOException when dict header cannot be read."
This commit is contained in:
commit
d10e2d85af
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user