Catch Exception while creating a FSTDataProviderNUSTitle

This commit is contained in:
Maschell 2019-04-24 13:34:21 +02:00
parent 93330d24a6
commit ee54c9441a
3 changed files with 14 additions and 3 deletions

View File

@ -92,7 +92,7 @@
<dependency> <dependency>
<groupId>com.github.Maschell</groupId> <groupId>com.github.Maschell</groupId>
<artifactId>JNUSLib</artifactId> <artifactId>JNUSLib</artifactId>
<version>c47c991</version> <version>fccd8f8</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>

View File

@ -1,6 +1,7 @@
package de.mas.wiiu.jnus.fuse_wiiu.implementation; package de.mas.wiiu.jnus.fuse_wiiu.implementation;
import java.io.File; import java.io.File;
import java.io.IOException;
import java.util.Optional; import java.util.Optional;
import de.mas.wiiu.jnus.NUSTitle; import de.mas.wiiu.jnus.NUSTitle;
@ -46,7 +47,12 @@ public class LocalBackupNUSTitleContainer extends GroupFuseContainer {
e1.printStackTrace(); e1.printStackTrace();
} }
} }
try {
return new FSTDataProviderNUSTitle(t); return new FSTDataProviderNUSTitle(t);
} catch (IOException e) {
e.printStackTrace();
return null;
}
})); }));
} }
} }

View File

@ -58,7 +58,12 @@ public class LocalNUSTitleContainer extends GroupFuseContainer {
} }
} }
try {
return new FSTDataProviderNUSTitle(t); return new FSTDataProviderNUSTitle(t);
} catch (IOException e) {
e.printStackTrace();
return null;
}
})); }));
} }