Ensure PooledByteBuf.init() is not called with null memory

This commit is contained in:
Trustin Lee 2012-12-17 16:02:21 +09:00
parent ba3c795fdf
commit 33134b1343
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ abstract class PooledByteBuf<T> extends AbstractByteBuf implements Unsafe {
void init(PoolChunk<T> chunk, long handle, T memory, int offset, int length) {
assert handle >= 0;
assert memory != null;
this.chunk = chunk;
this.handle = handle;
this.memory = memory;