Fix possible NPE
This commit is contained in:
parent
7cf7d7455d
commit
a8216e7ce0
@ -90,7 +90,7 @@ final class DefaultMessageBuf<T> extends AbstractMessageBuf<T> {
|
||||
} while (i != tail);
|
||||
}
|
||||
|
||||
elements = null;
|
||||
elements = cast(new Object[2]);
|
||||
this.head = 0;
|
||||
this.tail = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user