HttpExchange could be null during parse()
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
ae62180416
commit
abb5ae8812
|
@ -235,7 +235,8 @@ public class HttpReceiverOverHTTP extends HttpReceiver implements HttpParser.Res
|
||||||
|
|
||||||
if (complete)
|
if (complete)
|
||||||
{
|
{
|
||||||
if (getHttpExchange().getResponse().getStatus() == HttpStatus.SWITCHING_PROTOCOLS_101)
|
HttpExchange httpExchange = getHttpExchange();
|
||||||
|
if (httpExchange != null && httpExchange.getResponse().getStatus() == HttpStatus.SWITCHING_PROTOCOLS_101)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
|
|
Loading…
Reference in New Issue