From 9ee96b88e8f61570bb301efca09c2455877df649 Mon Sep 17 00:00:00 2001 From: FC Stegerman Date: Sun, 16 Jul 2023 18:04:26 +0200 Subject: [PATCH] CatimaImporter: add .close() --- .../java/protect/card_locker/importexport/CatimaImporter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java b/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java index 1ab38c714..b5f6c63ae 100644 --- a/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java +++ b/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java @@ -93,6 +93,8 @@ public class CatimaImporter implements Importer { importedData = importCSV(bufferedInputStream1); } + input1.close(); + if (importedData == null) { throw new FormatException("No imported data"); } @@ -112,6 +114,8 @@ public class CatimaImporter implements Importer { Utils.saveCardImage(context, ZipUtils.readImage(zipInputStream2), newFileName); } } + + input2.close(); } }