438387 - NullPointerException after ServletUpgradeResponse.sendForbidden
is called during WebSocketCreator.createWebSocket + Adding NPE guard for error/forbidden/complete flows
This commit is contained in:
parent
ffa0fc73a9
commit
d4d62c5690
|
@ -58,9 +58,14 @@ public class ServletUpgradeResponse extends UpgradeResponse
|
|||
}
|
||||
|
||||
public boolean isCommitted()
|
||||
{
|
||||
if (response != null)
|
||||
{
|
||||
return response.isCommitted();
|
||||
}
|
||||
// True in all other cases
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isExtensionsNegotiated()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue