mirror of
https://github.com/Maschell/fuse-wiiu.git
synced 2024-11-24 23:36:53 +01:00
The parent of a FSTEntry is now an optional, let's check if it exists before using it.
This commit is contained in:
parent
3005ed981f
commit
93330d24a6
2
pom.xml
2
pom.xml
@ -92,7 +92,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.Maschell</groupId>
|
||||
<artifactId>JNUSLib</artifactId>
|
||||
<version>75e28a7</version>
|
||||
<version>c47c991</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
|
@ -40,7 +40,9 @@ public class WUDMountedFuseContainer extends WUDFuseContainer {
|
||||
try {
|
||||
for (FSTDataProvider dp : dps) {
|
||||
for (FSTEntry tmd : FSTUtils.getFSTEntriesByRegEx(dp.getRoot(), ".*tmd")) {
|
||||
FSTEntry parent = tmd.getParent();
|
||||
Optional<FSTEntry> parentOpt = tmd.getParent();
|
||||
if (parentOpt.isPresent()) {
|
||||
FSTEntry parent = parentOpt.get();
|
||||
if (parent.getFileChildren().stream().filter(f -> f.getFilename().endsWith(".app")).findAny().isPresent()) {
|
||||
FSTDataProvider fdp = null;
|
||||
|
||||
@ -60,7 +62,9 @@ public class WUDMountedFuseContainer extends WUDFuseContainer {
|
||||
|
||||
FSTDataProvider fdpCpy = fdp;
|
||||
|
||||
this.addFuseContainer("[DECRYPTED] [" + dp.getName() + "] " + parent.getFilename(), new FSTDataProviderContainer(getParent(), fdpCpy));
|
||||
this.addFuseContainer("[DECRYPTED] [" + dp.getName() + "] " + parent.getFilename(),
|
||||
new FSTDataProviderContainer(getParent(), fdpCpy));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user