am 65e49700: Fix hackCanUseDictionaryFile.

* commit '65e4970026fd0e7964796c0e252b6d71632b634c':
  Fix hackCanUseDictionaryFile.
main
Yuichiro Hanada 2012-09-18 00:05:06 -07:00 committed by Android Git Automerger
commit fe4db6a82e
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.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.nio.channels.FileChannel; import java.nio.channels.FileChannel;
import java.util.ArrayList; import java.util.ArrayList;
@ -382,6 +383,8 @@ class BinaryDictionaryGetter {
return false; return false;
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
return false; return false;
} catch (BufferUnderflowException e) {
return false;
} finally { } finally {
if (inStream != null) { if (inStream != null) {
try { try {