fix null response in onSuccess
@@ -42,7 +42,9 @@ public class InterceptorChain implements Interceptor {
Iterator<Interceptor> iter = interceptors.iterator();
for (; iter.hasNext(); ) {
Interceptor item = iter.next();
+ if (response != null) {
data = response.getResult();
+ }
item.onSuccess(data, request, response);
}
}
