-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
NullPointerException: ssl_session == null #3301
Comments
I don’t have enough information to take action on this. If you think there’s something OkHttp could do to fix this, please let me know what that is. If it’s something that the device’s vendor should deal with, please report to them. |
+1 金立 M5,ROM: Meizu/FLYME,Android 6.0 |
the same issues appear com.squareup.okhttp3:okhttp:3.6.0 please check again @swankjesse |
@ronnie could you help us to isolate and reproduce? |
+1 M5 android 6.0 okhttp 3.6.0 |
Is the problem solved? |
I think this needs to be fixed by the device maker. |
@swankjesse I think it's a Google Conscrypt bug. Happened on the conscrypt branch, I reported it and there is a fix that should make 1.0. Happens when you try to use the Session after the remote side closes it. We may want to consider catching this NPE in okhttp, rethrowing as IOException. |
i met same bug recently. @swankjesse said it is a Google Conscrypt bug, i follow @yschimke's guide,wrote a class NetExceptionHandlerInterceptor,then i add NetExceptionHandlerInterceptor to okhttpClient's NetworkInterceptor,so it handle all Exception and rethrowing as IOException,i think this method can resolve the problem.
|
For my app its about 500 crashes per week and all of it happens only on Meizu M5 on Android 6. Suggested workaround based on NetExceptionHandlerInterceptor does not help. But if its really Google Conscrypt bug then probably it could be fixed using conscrypt lib |
We met a bug recently. the trace log is
What's more, the phone model is m5 and M611D,system version is Android 6.0 .
We think it is a rare problem when tls connect stage. It is great thing when you fixed it! Thanks ~
The text was updated successfully, but these errors were encountered: