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

Specify that SecureRandom.nextBytes(byte[]) throws NullPointerException when byte array is null

XMLWordPrintable

    • b23
    • Verified

      Most SecureRandom implementations throw an NPE when nextBytes(null) is called, but not the one from SunPKCS11 where it's silently ignored. We might want to specify and enforce at the API level that an NPE should be thrown.

            valeriep Valerie Peng
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: