removed not needed NPE check

This commit is contained in:
Brian Matzon 2004-03-10 20:54:37 +00:00
parent 015ce9e37d
commit dbb0ac6e98
1 changed files with 1 additions and 2 deletions

View File

@ -402,8 +402,7 @@ public class Keyboard {
public static int enableBuffer() throws Exception {
assert created : "The keyboard has not been created.";
readBuffer = nEnableBuffer();
if (readBuffer != null)
readBuffer.order(ByteOrder.nativeOrder());
readBuffer.order(ByteOrder.nativeOrder());
return readBuffer.capacity()/2;
}