Index: C:/Work/Projects/Harmony/Harmony/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java =================================================================== --- C:/Work/Projects/Harmony/Harmony/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java (revision 433596) +++ C:/Work/Projects/Harmony/Harmony/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java (working copy) @@ -94,6 +94,11 @@ * @com.intel.drl.spec_ref */ public int read(byte[] b, int off, int len) throws IOException { + + if (in == null){ + throw new NullPointerException(); + } + int read_b; int i; for (i=0; i