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>
<groupId>com.github.Maschell</groupId>
<artifactId>JNUSLib</artifactId>
<version>c47c991</version>
<version>fccd8f8</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>

View File

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

View File

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