8131735: closed/sun/security/ssl/SSLSessionImpl/RemovedPrivateKey.java is failing
Reviewed-by: vinnie
--- a/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/ssl/Krb5KeyExchangeService.java Fri Jul 17 10:37:25 2015 +0100
+++ b/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/ssl/Krb5KeyExchangeService.java Fri Jul 17 19:40:25 2015 +0800
@@ -83,6 +83,12 @@
(PrivilegedExceptionAction<ServiceCreds>)
() -> Krb5Util.getServiceCreds(
GSSCaller.CALLER_SSL_SERVER, null, acc));
+ if (serviceCreds == null) {
+ if (debug != null && Debug.isOn("handshake")) {
+ System.out.println("Kerberos serviceCreds not available");
+ }
+ return null;
+ }
if (debug != null && Debug.isOn("handshake")) {
System.out.println("Using Kerberos creds");
}