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;
if (fileBytesLeft <= 0) {
log.warning("offset too big");
System.exit(1);
throw new IOException("Offset was to big.");
}
if (fileBytesLeft < usedSize) {
usedSize = fileBytesLeft;