diff options
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index 919a135..d3fb034 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -478,6 +478,9 @@ public class BrowserProvider2 extends SQLiteContentProvider { } private byte[] readRaw(Resources res, int id) throws IOException { + if (id == 0) { + return null; + } InputStream is = res.openRawResource(id); try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); |