mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-22 07:59:19 +01:00
Only throw an exception when no content was found for files that are actually in the title (and not a directory)
This commit is contained in:
parent
f8146ce56b
commit
a9fc37244a
@ -103,11 +103,13 @@ public final class FSTService {
|
||||
if (contentsByIndex != null) {
|
||||
Content content = contentsByIndex.get((int) contentIndex);
|
||||
if (content == null) {
|
||||
log.warning("Content for FST Entry not found");
|
||||
throw new ParseException("Content for FST Entry not found", 0);
|
||||
if (!entryParam.isDir() || entryParam.isNotInPackage()) {
|
||||
log.warning("Content for FST Entry not found");
|
||||
throw new ParseException("Content for FST Entry not found", 0);
|
||||
}
|
||||
} else {
|
||||
// TODO: make content attribute in a fstentry optional
|
||||
entryParam.setContent(content);
|
||||
|
||||
ContentFSTInfo contentFSTInfo = contentsFSTByIndex.get((int) contentIndex);
|
||||
if (contentFSTInfo == null) {
|
||||
log.warning("ContentFSTInfo for FST Entry not found");
|
||||
|
Loading…
Reference in New Issue
Block a user