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);