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

XMLWordPrintable

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



      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.

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

            Assignee:
            Unassigned
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: