You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "pingpingy1 (via GitHub)" <gi...@apache.org> on 2024/02/02 07:00:48 UTC

[PR] Guard Filter.decode against empty filterList [pdfbox]

pingpingy1 opened a new pull request, #178:
URL: https://github.com/apache/pdfbox/pull/178

   If an empty list is provided to the `Filter.decode` static method, then a `NullPointerException` is thrown just before the return statement, where `randomAccessWriteBuffer` has not been set.
   The error message is thus of little help in debugging, as it gives no indication that the `filterList` argument is at fault here. This commit adds a guard to throw an `IllegalArgumentException` before the main execution to provide a more informative error trace.


-- 
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: dev-unsubscribe@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Re: [PR] Guard Filter.decode against empty filterList [pdfbox]

Posted by "asfgit (via GitHub)" <gi...@apache.org>.
asfgit closed pull request #178: Guard Filter.decode against empty filterList
URL: https://github.com/apache/pdfbox/pull/178


-- 
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: dev-unsubscribe@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Re: [PR] Guard Filter.decode against empty filterList [pdfbox]

Posted by "THausherr (via GitHub)" <gi...@apache.org>.
THausherr commented on PR #178:
URL: https://github.com/apache/pdfbox/pull/178#issuecomment-1924128267

   Done, thanks!


-- 
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: dev-unsubscribe@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org