From ef878f7e41d2472dda640592e0e3535b0e837330 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 19 Apr 2019 10:57:18 +0200 Subject: [PATCH] Return an empty HashMap instead of null. --- .../wiiu/jnus/implementations/wud/parser/WUDInfoParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java index beb0190..b2ea0f6 100644 --- a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java +++ b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java @@ -130,7 +130,7 @@ public final class WUDInfoParser { throw new ParseException("Failed to decrypt the FST of the SI partition.", 0); } - FST siFST = FST.parseFST(fileTableBlock, null); + FST siFST = FST.parseFST(fileTableBlock, new HashMap<>()); for (val dirChilden : siFST.getRoot().getDirChildren()) { // The SI partition contains the tmd, cert and tik for every GM partition. @@ -188,7 +188,7 @@ public final class WUDInfoParser { throw new IOException("FST Decrpytion failed"); } - FST curFST = FST.parseFST(curFileTableBlock, null); + FST curFST = FST.parseFST(curFileTableBlock, new HashMap<>()); WUDDataPartition curDataPartition = new WUDDataPartition(curPartionName, partitionOffset + headerSize, curFST);