Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5056170

Unspecified NPE in Cipher init(int, Key) and init(int, Key,

XMLWordPrintable



      Name: ipR10067 Date: 06/02/2004




      The description of the Cipher.init(int opmode, java.security.Key key)
      and Cipher.init(int opmode, java.security.Key key, java.security.SecureRandom
      random)
      methods does not describe any exception, but java.security.InvalidKeyException.

      However the implementation throws NullPointerException
      when the parameter "key" is null.


      ======================================================================

            valeriep Valerie Peng
            ipsunw Ip Ip (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: