From 3a85dda1e158a771d2820d065d25820044f345a5 Mon Sep 17 00:00:00 2001 From: Yuri Schimke Date: Sat, 9 Apr 2016 22:48:32 -0700 Subject: [PATCH] fix NPE with okcurl insecure mode --- okcurl/src/main/java/okhttp3/curl/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okcurl/src/main/java/okhttp3/curl/Main.java b/okcurl/src/main/java/okhttp3/curl/Main.java index 4268ec04ef65..91d1da7cd56c 100644 --- a/okcurl/src/main/java/okhttp3/curl/Main.java +++ b/okcurl/src/main/java/okhttp3/curl/Main.java @@ -251,7 +251,7 @@ private static SSLSocketFactory createInsecureSslSocketFactory() { } @Override public X509Certificate[] getAcceptedIssuers() { - return null; + return new X509Certificate[0]; } }; context.init(null, new TrustManager[] {permissive}, null);