static void checkNotNull(ByteBuffer[] buffers) {
        for (ByteBuffer buffer : buffers) {
            if (buffer == null) {
                throw new IllegalArgumentException("Null buffer in array");
            }
        }
    }
Throws {@link IllegalArgumentException} if any of the buffers in the array are null.
common/src/main/java/org/conscrypt/BufferUtils.java