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.

            Assignee:
            Valerie Peng
            Reporter:
            Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: