Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - handle null Call instances in HttpRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Jan 22, 2018
1 parent d0987e9 commit 982fcc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private void handleFailure(Call call, Exception e) {
String errorMessage = e.getMessage() != null ? e.getMessage() : "Error processing the request";
int type = getFailureType(e);

if (logEnabled) {
if (logEnabled && call != null && call.request() != null) {
String requestUrl = call.request().url().toString();
logFailure(type, errorMessage, requestUrl);
}
Expand Down

0 comments on commit 982fcc9

Please sign in to comment.