Fix hackCanUseDictionaryFile.

Bug: 7169473

Change-Id: I575aaa350042af076a8da5756993cdae9e73422c
main
Yuichiro Hanada 2012-09-18 14:06:12 +09:00
parent 764dd71203
commit 65e4970026
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import android.util.Log;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
@ -382,6 +383,8 @@ class BinaryDictionaryGetter {
return false;
} catch (NumberFormatException e) {
return false;
} catch (BufferUnderflowException e) {
return false;
} finally {
if (inStream != null) {
try {