From 9ca89b3dfaf4f25b0c3d1b831abe7d190c623634 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sun, 28 Feb 2021 09:49:02 +0100 Subject: [PATCH] Catch all exceptions when loading cached message --- .../signal/manager/storage/messageCache/CachedMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/org/asamk/signal/manager/storage/messageCache/CachedMessage.java b/lib/src/main/java/org/asamk/signal/manager/storage/messageCache/CachedMessage.java index 8ea723cc..404153b3 100644 --- a/lib/src/main/java/org/asamk/signal/manager/storage/messageCache/CachedMessage.java +++ b/lib/src/main/java/org/asamk/signal/manager/storage/messageCache/CachedMessage.java @@ -22,7 +22,7 @@ public final class CachedMessage { public SignalServiceEnvelope loadEnvelope() { try { return MessageCacheUtils.loadEnvelope(file); - } catch (IOException e) { + } catch (Exception e) { logger.error("Failed to load cached message envelope “{}”: {}", file, e.getMessage()); return null; }