mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-25 09:26:55 +01:00
Throw an exception instead of doing a System.exit when the offset is too big.
This commit is contained in:
parent
3a6f592294
commit
d3f2361803
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user