Throw an exception instead of doing a System.exit when the offset is too big.

This commit is contained in:
Maschell 2019-04-19 10:44:08 +02:00
parent 3a6f592294
commit d3f2361803

View File

@ -46,8 +46,7 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
long usedSize = size; long usedSize = size;
if (fileBytesLeft <= 0) { if (fileBytesLeft <= 0) {
log.warning("offset too big"); throw new IOException("Offset was to big.");
System.exit(1);
} }
if (fileBytesLeft < usedSize) { if (fileBytesLeft < usedSize) {
usedSize = fileBytesLeft; usedSize = fileBytesLeft;