Catch all exceptions when loading cached message

This commit is contained in:
AsamK 2021-02-28 09:49:02 +01:00
parent 86711b0e5c
commit 9ca89b3dfa

View file

@ -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;
}