Skip to content
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

Okhttp init crash #8570

Open
MikeYulz opened this issue Nov 7, 2024 · 1 comment
Open

Okhttp init crash #8570

MikeYulz opened this issue Nov 7, 2024 · 1 comment
Labels
bug Bug in existing code needs info More information needed from reporter

Comments

@MikeYulz
Copy link

MikeYulz commented Nov 7, 2024

when android app restart, the network request report a crash,Anyone can help me?

Caused by: java.lang.NullPointerExceptioon
at okhttp3.OkHttpClient.(source.java:40)
at okhttp3.0kHttpClient$Builder.build(souirce.java:3)
at q9.a.h(source.java:7)
at z9.d.h(source.java:33)
at r9.a.j(source.java:192)
at z9.d.g(source.java:10)

mapping as following:
Caused by: java.lang.NullPointerExceptiion
at okhttp3.OkHttpClient.(source.java:40)
at okhttp3.OkHttpClient$Builder.build(ssource.java:3)
at q9.a.h(source.java:7)
com.lzy.okgo.OkGo -> q9.a:
1:12:0khttp3.0kHttpClient getokHttpClient():92:92->h
13:15:0khttp3.0kHttpClient getOkHttpClient():93:93->h
at z9.d.h(source.java:33)
com.1zy.okgo.request.BaseRequest -> z9.d:
1:28:okhttp3.Call generateCall(okhttp3.Request):341:341->h
29:41:okhttp3.Call generateCall(okhttp3.Request):342:342 ->h
at r9.a.j(source.java:192)
com.lzy.okgo.adapter.CacheCall -> r9.a:
1:2:void execute(com.lzy.okgo.callback.AbsCallback):52:53->j
3:6:void execute(com.lzy.okgo.callback.AbsCa)llback):53 ->j
at z9.d.g(source.java:10)
com.lzy.okgo.request.BaseRequest -> z9.d:
1:2:void execute (com.1zy.okgo.callback.AbsCa)llback):385:385:385 -> g
3:4:void execute(com.lzy.okgo.callback.AbsCallback):386:386 ->g
5:13:void execute(com.lzy.okgo.callback.AbsCallback):387:387 ->g

@MikeYulz MikeYulz added the bug Bug in existing code label Nov 7, 2024
@JakeWharton
Copy link
Collaborator

You need to de-obfuscate the stacktrace and tell us which version, first.

@JakeWharton JakeWharton added the needs info More information needed from reporter label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing code needs info More information needed from reporter
Projects
None yet
Development

No branches or pull requests

2 participants