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

ReverseBuilder.getMatchingCACerts may throws NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • security-libs
    • None
    • b43
    • generic
    • generic
    • Verified

        sun.security.provider.certpath.ReverseBuilder.getMatchingCACerts():
        222 sel.addPathToName(4, targetCertConstraints.getSubjectAsBytes());

        targetCertConstraints is an instance of X509CertSelector. X509CertSelector.getSubjectAsBytes() mey return null, as will result in X509CertSelector.addPathToName() throws NullPointerException.

        We may need to update the above code in case the subject in an X509CertSelector is null.

              mullan Sean Mullan
              xuelei Xuelei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: