Skip to content

Commit

Permalink
Merge pull request square#2471 from yschimke/insecure_npe
Browse files Browse the repository at this point in the history
fix NPE with okcurl insecure mode
  • Loading branch information
swankjesse committed Apr 10, 2016
2 parents e712faa + 3a85dda commit 2c9fbb1
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 2c9fbb1

Please sign in to comment.