elharo commented on code in PR #569:
URL: https://github.com/apache/commons-io/pull/569#discussion_r1468505092
##########
src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java:
##########
@@ -73,12 +73,17 @@ public static class Builder extends
AbstractStreamBuilder<RandomAccessFileInputS
@SuppressWarnings("resource") // Caller closes depending on settings
@Override
public RandomAccessFileInputStream get() throws IOException {
+ if (randomAccessFile == null && getOrigin() == null) {
Review Comment:
I wonder if in this case NullPointerException is correct and we should
change the doc to match the current behavior instead?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]