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-unsubscr...@pdfbox.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org