Fix compilation failure introduced by bad cherry-picking of 057eb121f4

This commit is contained in:
Norman Maurer 2020-11-16 09:26:07 +01:00
parent 3f9522cd66
commit 83f3014690

View File

@ -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);
}