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

Commit 982fcc9

Browse files
committed
[android] - handle null Call instances in HttpRequest
1 parent d0987e9 commit 982fcc9

File tree

1 file changed

+1
-1
lines changed
  • platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http

1 file changed

+1
-1
lines changed

platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HTTPRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private void handleFailure(Call call, Exception e) {
170170
String errorMessage = e.getMessage() != null ? e.getMessage() : "Error processing the request";
171171
int type = getFailureType(e);
172172

173-
if (logEnabled) {
173+
if (logEnabled && call != null && call.request() != null) {
174174
String requestUrl = call.request().url().toString();
175175
logFailure(type, errorMessage, requestUrl);
176176
}

0 commit comments

Comments
 (0)