diff options
Diffstat (limited to 'packages/DocumentsUI/src/com/android/documentsui/model/DurableUtils.java')
-rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/model/DurableUtils.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/model/DurableUtils.java b/packages/DocumentsUI/src/com/android/documentsui/model/DurableUtils.java index 214fb14..2a29cbc 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/model/DurableUtils.java +++ b/packages/DocumentsUI/src/com/android/documentsui/model/DurableUtils.java @@ -36,6 +36,7 @@ public class DurableUtils { } public static <D extends Durable> D readFromArray(byte[] data, D d) throws IOException { + if (data == null) throw new IOException("Missing data"); final ByteArrayInputStream in = new ByteArrayInputStream(data); d.reset(); try { |