From ba57fbbf851abdfa9ada9b295ccd249ee0a88a64 Mon Sep 17 00:00:00 2001 From: Robin Syl Date: Fri, 14 Oct 2022 21:36:02 +0200 Subject: [PATCH] Close inputstream in importData --- .../java/protect/card_locker/importexport/CatimaImporter.java | 2 ++ 1 file changed, 2 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 3d6fbc724..a99b621dc 100644 --- a/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java +++ b/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java @@ -68,6 +68,8 @@ public class CatimaImporter implements Importer { bufferedInputStream.reset(); importCSV(context, database, bufferedInputStream); } + + input.close(); } public void importCSV(Context context, SQLiteDatabase database, InputStream input) throws IOException, FormatException, InterruptedException {