Guarding against NPE if the masker is null.

This commit is contained in:
Simone Bordet 2012-12-12 14:14:18 +01:00
parent b9b16529d5
commit f3d53918b5
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ public class WebSocketClientConnection extends AbstractWebSocketConnection
{
if (frame instanceof WebSocketFrame)
{
masker.setMask((WebSocketFrame)frame);
if (masker != null)
masker.setMask((WebSocketFrame)frame);
}
return super.outgoingFrame(frame);
}