Throw an exception instead of returning null in the WUX DiscReader

This commit is contained in:
Maschell 2019-04-10 17:58:20 +02:00
parent 70d45e80fa
commit d713a3d735

View File

@ -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));