From 39d10291a21621eceaef355a3ddf1229fca3156c Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 19 Apr 2019 11:37:22 +0200 Subject: [PATCH] Fix the warning when you try to decrypt a FSTEntry where the content is empty. --- .../wiiu/jnus/implementations/FSTDataProviderNUSTitle.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java index ead8985..174848d 100644 --- a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java +++ b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java @@ -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;