pjfanning commented on code in PR #1044:
URL: https://github.com/apache/poi/pull/1044#discussion_r3052664595


##########
poi/src/main/java/org/apache/poi/poifs/nio/FileBackedDataSource.java:
##########
@@ -95,7 +95,7 @@ public FileChannel getChannel() {
     @Override
     public ByteBuffer read(int length, long position) throws IOException {
         if (position >= size()) {
-            throw new IndexOutOfBoundsException("Position " + position + " 
past the end of the file");
+           return ByteBuffer.allocate(length);

Review Comment:
   add a comment about why this is allowed - like in the other class above
   



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to