438387 - NullPointerException after ServletUpgradeResponse.sendForbidden

is called during WebSocketCreator.createWebSocket 

+ Adding NPE guard for error/forbidden/complete flows
This commit is contained in:
Joakim Erdfelt 2014-09-22 14:50:36 -07:00
parent ffa0fc73a9
commit d4d62c5690
1 changed files with 6 additions and 1 deletions

View File

@ -59,7 +59,12 @@ public class ServletUpgradeResponse extends UpgradeResponse
public boolean isCommitted()
{
return response.isCommitted();
if (response != null)
{
return response.isCommitted();
}
// True in all other cases
return true;
}
public boolean isExtensionsNegotiated()