mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Subversion: against NPE in IdeaSvnkitBasedAuthenticationCallback$SSLServerCertificateAuthenticator.acknowledge
This commit is contained in:
+3
@@ -270,6 +270,9 @@ public class IdeaSvnkitBasedAuthenticationCallback implements AuthenticationCall
|
||||
// we should store certificate, if it wasn't accepted (if temporally tmp)
|
||||
if (myCertificate == null) { // this is if certificate was stored only in passive area
|
||||
String stored = (String) manager.getRuntimeAuthStorage().getData("svn.ssl.server", myRealm);
|
||||
if (StringUtil.isEmptyOrSpaces(stored)) {
|
||||
throw new SVNException(SVNErrorMessage.create(SVNErrorCode.AUTHN_CREDS_UNAVAILABLE, "No stored in runtime server certificate found"));
|
||||
}
|
||||
CertificateFactory cf = null;
|
||||
try {
|
||||
cf = CertificateFactory.getInstance("X509");
|
||||
|
||||
Reference in New Issue
Block a user