Do a small sanity check, however

This commit is contained in:
Andrew Steinborn 2019-05-21 00:58:52 -04:00
parent 821a7a45bc
commit b881e9cf04

View File

@ -51,6 +51,7 @@ public class NativeVelocityCipher implements VelocityCipher {
@Override
public ByteBuf process(ChannelHandlerContext ctx, ByteBuf source) throws ShortBufferException {
ensureNotDisposed();
source.memoryAddress(); // sanity check
int len = source.readableBytes();
ByteBuf out = ctx.alloc().directBuffer(len);