ppkarwasz commented on code in PR #776: URL: https://github.com/apache/commons-io/pull/776#discussion_r2325125868
########## src/main/java/org/apache/commons/io/RandomAccessFiles.java: ########## @@ -76,7 +76,11 @@ private static long length(final RandomAccessFile raf) throws IOException { * other I/O error occurs. */ public static byte[] read(final RandomAccessFile input, final long position, final int length) throws IOException { + Objects.requireNonNull(input, "input"); input.seek(position); + if (length < 0) { Review Comment: Fixed in https://github.com/apache/commons-io/pull/776/commits/d748e99d390eef117d54bf175dcaa569e2b9106d -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org