New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NullPointerException: Attempt to get length of null array #2364
Comments
Hey, I had also this error. I managed to fixed it by changing 'return null;' for 'return new X509Certificate[0];' in getAcceptedIssuers() |
@masztalski Thanks, but it is still regression or there should be more detailed message about this case. |
@hexonxons indeed, I have spent some time searching through forums to find out about solution. |
I had the same problem. I think this is not an OkHttp issue.
|
@ralscha Maybe, but there is another doc in android-23:
nothing about |
Yep, that’s a good point. You should submit a pull request! |
This code produces NPE:
Stacktrace:
There was no error in
3.0.1
version, started to crash in3.1+
The text was updated successfully, but these errors were encountered: