mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-25 17:36:55 +01:00
Fix the warning when you try to decrypt a FSTEntry where the content is empty.
This commit is contained in:
parent
dbad684549
commit
39d10291a2
@ -107,9 +107,8 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle {
|
||||
log.info("Decryption not possible because no ticket was set.");
|
||||
} else if (entry.isNotInPackage()) {
|
||||
log.info("Decryption not possible because the FSTEntry is not in this package");
|
||||
} else if (entry.getContent() == null) {
|
||||
// TODO: convert it to an Optional
|
||||
log.info("Decryption not possible because the Content was null");
|
||||
} else if (!entry.getContent().isPresent()) {
|
||||
log.info("Decryption not possible because the Content was empty");
|
||||
}
|
||||
outputStream.close();
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user