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

Unexpected NPE in KeyAgreement.getInstance(null) method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 5.0
    • security-libs



      Name: alR10104 Date: 11/17/2003



      The spec states for the KeyAgreement.getInstance(String alg) method:
      "Throws:
      NoSuchAlgorithmException - if the specified algorithm is not available in
      the default provider package or any of the other provider packages that were
      searched."

      Instead, the NullPointerException is thrown when alg==null.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: