Skip to content

Commit

Permalink
Allow for zero-byte files
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrez committed Mar 14, 2022
1 parent 696a986 commit b6df322
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public static void main(final String[] _args) {
final byte[] sampleData = new byte[sampleSize];
Arrays.fill(sampleData, (byte) 0x00);
final int bytesRead = fis.read(sampleData);
if (0 >= bytesRead) {
if (0 > bytesRead) {
logger.println_err("ERROR: unable to read file");
throw new IOException("Unable to read file");
}
Expand Down

0 comments on commit b6df322

Please sign in to comment.