Ensure PooledByteBuf.init() is not called with null memory
This commit is contained in:
parent
ba3c795fdf
commit
33134b1343
@ -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) {
|
void init(PoolChunk<T> chunk, long handle, T memory, int offset, int length) {
|
||||||
assert handle >= 0;
|
assert handle >= 0;
|
||||||
|
assert memory != null;
|
||||||
|
|
||||||
this.chunk = chunk;
|
this.chunk = chunk;
|
||||||
this.handle = handle;
|
this.handle = handle;
|
||||||
this.memory = memory;
|
this.memory = memory;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user