Skip to content

Commit

Permalink
Issue #6642 - check for null Metadata in HttpConnection
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Aug 27, 2021
1 parent 949aa6c commit 2d4693a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -886,7 +886,7 @@ private void releaseChunk()
@Override
protected void onCompleteSuccess()
{
boolean upgrading = _info.getStatus() == HttpStatus.SWITCHING_PROTOCOLS_101;
boolean upgrading = _info != null && _info.getStatus() == HttpStatus.SWITCHING_PROTOCOLS_101;
release().succeeded();
// If successfully upgraded it is responsibility of the next protocol to close the connection.
if (_shutdownOut && !upgrading)
Expand Down

0 comments on commit 2d4693a

Please sign in to comment.