mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-16 21:19:19 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user