1
0
mirror of https://github.com/jetty/jetty.project.git synced 2025-02-26 09:34:56 +00:00

null check on payload

This commit is contained in:
Jesse McConnell 2012-07-10 08:55:15 -05:00
parent 3754f9e04c
commit 9d2968d781

@ -132,7 +132,14 @@ public class WebSocketFrame implements Frame
@Override
public ByteBuffer getPayload()
{
return data.slice();
if (data != null)
{
return data.slice();
}
else
{
return null;
}
}
public String getPayloadAsUTF8()