Skip to content
Snippets Groups Projects
Commit 65e49700 authored by Yuichiro Hanada's avatar Yuichiro Hanada
Browse files

Fix hackCanUseDictionaryFile.

Bug: 7169473

Change-Id: I575aaa350042af076a8da5756993cdae9e73422c
parent 764dd712
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ import android.util.Log; ...@@ -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 { ...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment