8130799: KeyStoreSpi.engineProbe does not throw the expected NullPointerException
authorvinnie
Wed, 19 Aug 2015 17:42:52 +0100
changeset 32231 202718e81db8
parent 32230 2f44d6cdc380
child 32232 8d58fc5a0349
8130799: KeyStoreSpi.engineProbe does not throw the expected NullPointerException Reviewed-by: xuelei
jdk/src/java.base/share/classes/java/security/KeyStoreSpi.java
--- a/jdk/src/java.base/share/classes/java/security/KeyStoreSpi.java	Tue Aug 18 20:30:15 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/security/KeyStoreSpi.java	Wed Aug 19 17:42:52 2015 +0100
@@ -618,9 +618,12 @@
      * @throws IOException if there is an I/O problem with the keystore data.
      * @throws NullPointerException if stream is {@code null}.
      *
-     * @since 1.9
+     * @since 9
      */
     public boolean engineProbe(InputStream stream) throws IOException {
+        if (stream == null) {
+            throw new NullPointerException("input stream must not be null");
+        }
         return false;
     }
 }