Fix compilation failure introduced by bad cherry-picking of 057eb121f4
This commit is contained in:
parent
3f9522cd66
commit
83f3014690
@ -534,7 +534,7 @@ final class UnsafeByteBufUtil {
|
||||
buf.checkIndex(index, length);
|
||||
// we need to check not null for src as it may cause the JVM crash
|
||||
// See https://github.com/netty/netty/issues/10791
|
||||
checkNotNull(src, "src");
|
||||
requireNonNull(src, "src");
|
||||
if (isOutOfBounds(srcIndex, length, src.length)) {
|
||||
throw new IndexOutOfBoundsException("srcIndex: " + srcIndex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user