Skip to content

Commit 1553b14

Browse files
committed
attempt to help with TooTallNate#87
1 parent 8c9e785 commit 1553b14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/org/java_websocket/framing/CloseFrameBuilder.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public CloseFrameBuilder( int code , String m ) throws InvalidDataException {
3131
}
3232

3333
private void setCodeAndMessage( int code, String m ) throws InvalidDataException {
34+
if( m == null ) {
35+
m = "";
36+
}
3437
byte[] by = Charsetfunctions.utf8Bytes( m );
3538
ByteBuffer buf = ByteBuffer.allocate( 4 );
3639
buf.putInt( code );

0 commit comments

Comments
 (0)