changeset 258:9bec3afeebfd

8137203: dio vts 1.1 All tests on XXXConfig/index.html#S11n fail Summary: Added NULL check Reviewed-by: alkonsta
author snazarki
date Tue, 29 Sep 2015 14:32:55 +0300
parents 9e84ee5ad33c
children db2fb33c280e
files src/se/classes/com/oracle/dio/impl/Platform.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/classes/com/oracle/dio/impl/Platform.java	Tue Sep 29 14:01:33 2015 +0300
+++ b/src/se/classes/com/oracle/dio/impl/Platform.java	Tue Sep 29 14:32:55 2015 +0300
@@ -103,6 +103,7 @@
      * @return the root object
      */
     public static Object deserialize(InputStream in) throws IOException {
+        Objects.requireNonNull(in, "Invalid InputStream");
         throw new IOException("Platform.deserialize() is not implemented");
     }
 
@@ -118,6 +119,7 @@
      * @return a size of serialized data
      */
     public static int serialize(Object obj, OutputStream os) throws IOException {
+        Objects.requireNonNull(os, "Invalid OutputStream");
         throw new IOException("Platform.serialize() is not implemented");
     }