Skip to content

Conversation

gardockt
Copy link

@gardockt gardockt commented Oct 28, 2023

Added a simple IOException handling to readBytes method call - when the exception is thrown, a warning is logged and the file is skipped.

By the way, I'm not sure if this is intentional, but after reading the bytes InputStream.close method is called, which apparently does nothing. I left it in case this is intentional, so that this stream does not appear to be left open.

Partially fixes issue #5 - at the moment of writing this, there are two known exceptions that cause the crash (1 and 2), and this PR addresses the first one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant