mirror of
https://github.com/Maschell/JNUSLib.git
synced 2025-02-16 16:29:14 +01:00
Throw an exception instead of returning null in the WUX DiscReader
This commit is contained in:
parent
70d45e80fa
commit
d713a3d735
@ -17,6 +17,7 @@
|
|||||||
package de.mas.wiiu.jnus.implementations.wud.reader;
|
package de.mas.wiiu.jnus.implementations.wud.reader;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.io.RandomAccessFile;
|
import java.io.RandomAccessFile;
|
||||||
@ -105,7 +106,7 @@ public class WUDDiscReaderSplitted extends WUDDiscReader {
|
|||||||
|
|
||||||
if (!part.exists()) {
|
if (!part.exists()) {
|
||||||
log.info("File does not exist");
|
log.info("File does not exist");
|
||||||
return null;
|
throw new FileNotFoundException(part.getAbsolutePath() + " does not exist");
|
||||||
}
|
}
|
||||||
RandomAccessFile result = new RandomAccessFile(part, "r");
|
RandomAccessFile result = new RandomAccessFile(part, "r");
|
||||||
result.seek(getOffsetInFilePart(filePart, offset));
|
result.seek(getOffsetInFilePart(filePart, offset));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user