Skip to content

Commit

Permalink
fix NPE with okcurl insecure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Apr 10, 2016
1 parent e712faa commit 3a85dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okcurl/src/main/java/okhttp3/curl/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a85dda

Please sign in to comment.