jgilfelt / chuck

An in-app HTTP inspector for Android OkHttp clients
Apache License 2.0
4.68k stars 452 forks source link

NullPointerException #81

Closed LinXiaoTao closed 5 years ago

LinXiaoTao commented 5 years ago

Hello, This is the error message

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference
at com.readystatesoftware.chuck.ChuckInterceptor.create(ChuckInterceptor.java:226)
    at com.readystatesoftware.chuck.ChuckInterceptor.intercept(ChuckInterceptor.java:167)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
olivierperez commented 5 years ago

Hi, Chuck seems to be abandonned. With Nicola we forked to maintain it. Can you try with Chucker? And tell us if you still have the issue.

If the issue is still there, do you have a project repository we can clone to reproduce it?