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

Unspecified NullPointerException in SSLContext.getInstance methods

XMLWordPrintable

      The specification of the methods

        getInstance(String protocol)
        getInstance(String protocol, String provider)
        getInstance(String protocol, Provider provider)

      of the SSLContext class doesn't state that methods throw NullPointerException.

      But these methods throw NullPointerException if the protocol arfument is null.
      Not that jdk 1.4.2 correctly throws NoSuchAlgorithmException.

            xuelei Xuelei Fan
            msokolni Maxim Sokolnikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: