From 35747b7d9ff1ebaea092676892e99290ee5b46c0 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Thu, 14 Apr 2022 20:20:36 +0200 Subject: [PATCH] Fix import getting stuck on unexpected exception --- .../protect/card_locker/importexport/MultiFormatImporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/protect/card_locker/importexport/MultiFormatImporter.java b/app/src/main/java/protect/card_locker/importexport/MultiFormatImporter.java index 6bfeb3e2b..58b0d34ee 100644 --- a/app/src/main/java/protect/card_locker/importexport/MultiFormatImporter.java +++ b/app/src/main/java/protect/card_locker/importexport/MultiFormatImporter.java @@ -55,7 +55,7 @@ public class MultiFormatImporter { return new ImportExportResult(ImportExportResultType.Success); } catch (ZipException e) { return new ImportExportResult(ImportExportResultType.BadPassword); - } catch (IOException | FormatException | InterruptedException | JSONException | ParseException | NullPointerException e) { + } catch (Exception e) { Log.e(TAG, "Failed to import data", e); error = e.toString(); } finally {