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:
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user