am d10e2d85: Merge "Throw IOException when dict header cannot be read."
* commit 'd10e2d85afefb420ff88528cdb3f3b2fe676c857': Throw IOException when dict header cannot be read.main
commit
2af1763dda
|
@ -53,6 +53,10 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DictionaryHeader readHeader() throws IOException, UnsupportedFormatException {
|
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();
|
return mBinaryDictionary.getHeader();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue