Repository: ignite
Updated Branches:
  refs/heads/master 56e3f43e8 -> 8a42f64a3


IGNITE-8248 Fixed npe in Web Console agent int case of self-signed certificate.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8a42f64a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8a42f64a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8a42f64a

Branch: refs/heads/master
Commit: 8a42f64a38422304f62f263623c4517f469f8ddb
Parents: 56e3f43
Author: Andrey Novikov <anovi...@gridgain.com>
Authored: Fri Apr 13 18:08:35 2018 +0700
Committer: Andrey Novikov <anovi...@gridgain.com>
Committed: Fri Apr 13 18:08:35 2018 +0700

----------------------------------------------------------------------
 .../org/apache/ignite/console/agent/AgentLauncher.java   | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8a42f64a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java
----------------------------------------------------------------------
diff --git 
a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java
 
b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java
index 4db26ba..385ce08 100644
--- 
a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java
+++ 
b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java
@@ -32,6 +32,7 @@ import java.net.URI;
 import java.net.URISyntaxException;
 import java.net.URL;
 import java.net.UnknownHostException;
+import java.security.cert.X509Certificate;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.List;
@@ -122,18 +123,16 @@ public class AgentLauncher {
         return new TrustManager[] {
             new X509TrustManager() {
                 /** {@inheritDoc} */
-                @Override public java.security.cert.X509Certificate[] 
getAcceptedIssuers() {
-                    return null;
+                @Override public X509Certificate[] getAcceptedIssuers() {
+                    return new X509Certificate[0];
                 }
 
                 /** {@inheritDoc} */
-                @Override public void checkClientTrusted(
-                    java.security.cert.X509Certificate[] certs, String 
authType) {
+                @Override public void checkClientTrusted(X509Certificate[] 
certs, String authType) {
                 }
 
                 /** {@inheritDoc} */
-                @Override public void checkServerTrusted(
-                    java.security.cert.X509Certificate[] certs, String 
authType) {
+                @Override public void checkServerTrusted(X509Certificate[] 
certs, String authType) {
                 }
             }};
     }

Reply via email to