Skip to content

null and consequently crash on RetryHandler #137

Closed
@elincognito

Description

@elincognito

in

if(retry) {
        // resend all idempotent requests
        HttpUriRequest currentReq = (HttpUriRequest) context.getAttribute( ExecutionContext.HTTP_REQUEST );
        String requestType = currentReq.getMethod();
        retry = !requestType.equals("POST");
    }

currentReq returned is null and so the the currentReq.getMethod() crashs, leaving my application on a blocking state due to the fact that im waiting on the listeners to be invoked.
This happens for example if my Device is on Wi-Fi but with no internet connectivity

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions