Fix loading some account files without legacy store

This commit is contained in:
AsamK 2021-01-15 18:29:13 +01:00
parent fc76c9badf
commit 54a2a95fb5

View file

@ -358,7 +358,7 @@ public class SignalAccount implements Closeable {
messageCache = new MessageCache(getMessageCachePath(dataPath, username));
JsonNode threadStoreNode = rootNode.get("threadStore");
if (threadStoreNode != null) {
if (threadStoreNode != null && !threadStoreNode.isNull()) {
LegacyJsonThreadStore threadStore = jsonProcessor.convertValue(threadStoreNode,
LegacyJsonThreadStore.class);
// Migrate thread info to group and contact store