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

NullPointerException #52

Closed
joker-fu opened this issue May 7, 2019 · 4 comments
Closed

NullPointerException #52

joker-fu opened this issue May 7, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@joker-fu
Copy link
Contributor

joker-fu commented May 7, 2019

CrashReport: java.lang.NullPointerException: interceptor com.hyhs.oa.framework.network.HttpLoggingInterceptor@5d7b7d returned null
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:157)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at tech.linjiang.pandora.network.OkHttpInterceptor.intercept(OkHttpInterceptor.java:64)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:147)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

@whataa
Copy link
Owner

whataa commented May 8, 2019

第二行返回了null,看看是不是 com.hyhs.oa.framework.network.HttpLoggingInterceptor 这个类的问题呢?

@joker-fu
Copy link
Contributor Author

joker-fu commented May 8, 2019

不是 是at tech.linjiang.pandora.network.OkHttpInterceptor.intercept(OkHttpInterceptor.java:64)只抓了io异常 威武得老项目 项目里面得这个日志拦截器也是报空指针

@whataa
Copy link
Owner

whataa commented May 9, 2019

好的,谢谢

@whataa whataa added the bug Something isn't working label May 9, 2019
whataa added a commit that referenced this issue May 12, 2019
whataa added a commit that referenced this issue May 12, 2019
@whataa
Copy link
Owner

whataa commented May 12, 2019

请使用v2.0.4

@whataa whataa closed this as completed May 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants