Skip to content

Commit 6389fa9

Browse files
committed
1 parent 7f9016e commit 6389fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/com/loopj/android/http/RetryHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public boolean retryRequest(IOException exception, int executionCount, HttpConte
8888
if (retry) {
8989
// resend all idempotent requests
9090
HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST);
91-
String requestType = currentReq.getMethod();
91+
String requestType = currentReq != null ? currentReq.getMethod() : "";
9292
retry = !requestType.equals("POST");
9393
}
9494

0 commit comments

Comments
 (0)