fix npe when onCompleteFailure happens after reset (#12199)
Fix npe when onCompleteFailure happens after reset Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
aa07995f37
commit
ed1cadc449
|
@ -386,8 +386,11 @@ public abstract class HttpSender
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void internalAbort(HttpExchange exchange, Throwable failure)
|
private void internalAbort(Throwable failure)
|
||||||
{
|
{
|
||||||
|
HttpExchange exchange = getHttpExchange();
|
||||||
|
if (exchange == null)
|
||||||
|
return;
|
||||||
anyToFailure(failure);
|
anyToFailure(failure);
|
||||||
abortRequest(exchange);
|
abortRequest(exchange);
|
||||||
}
|
}
|
||||||
|
@ -626,7 +629,7 @@ public abstract class HttpSender
|
||||||
}
|
}
|
||||||
|
|
||||||
failRequest(x);
|
failRequest(x);
|
||||||
internalAbort(exchange, x);
|
internalAbort(x);
|
||||||
|
|
||||||
Promise<Boolean> promise = abort;
|
Promise<Boolean> promise = abort;
|
||||||
if (promise != null)
|
if (promise != null)
|
||||||
|
|
Loading…
Reference in New Issue