Skip to content

Commit

Permalink
fix npe when onCompleteFailure happens after reset
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Aug 26, 2024
1 parent f0cbbce commit 457bd7a
Showing 1 changed file with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,17 +481,21 @@ private class ContentSender extends IteratingCallback
@Override
public boolean reset()
{
exchange = null;
proceedAction = null;
expect100 = false;
chunk = null;
contentBuffer = null;
committed = false;
success = false;
complete = false;
abort = null;
demanded = false;
return super.reset();
if (super.reset())
{
exchange = null;
proceedAction = null;
expect100 = false;
chunk = null;
contentBuffer = null;
committed = false;
success = false;
complete = false;
abort = null;
demanded = false;
return true;
}
return false;
}

@Override
Expand Down

0 comments on commit 457bd7a

Please sign in to comment.