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

Unexpected NPE in KeyGenerator.getInstance(null, provider) method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description



      Name: alR10104 Date: 11/17/2003



      The spec states for the KeyGenerator.getInstance(String alg, Provider
      provider) method:
      "Throws:
      NoSuchAlgorithmException - if a key generator for the specified algorithm is
      not available from the specified provider."

      Instead, the NullPointerException is thrown when alg = null.

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: