mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-22 07:59:19 +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;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
@ -105,7 +106,7 @@ public class WUDDiscReaderSplitted extends WUDDiscReader {
|
||||
|
||||
if (!part.exists()) {
|
||||
log.info("File does not exist");
|
||||
return null;
|
||||
throw new FileNotFoundException(part.getAbsolutePath() + " does not exist");
|
||||
}
|
||||
RandomAccessFile result = new RandomAccessFile(part, "r");
|
||||
result.seek(getOffsetInFilePart(filePart, offset));
|
||||
|
Loading…
Reference in New Issue
Block a user