Fix loading some account files without legacy store
This commit is contained in:
parent
fc76c9badf
commit
54a2a95fb5
@ -358,7 +358,7 @@ public class SignalAccount implements Closeable {
|
|||||||
messageCache = new MessageCache(getMessageCachePath(dataPath, username));
|
messageCache = new MessageCache(getMessageCachePath(dataPath, username));
|
||||||
|
|
||||||
JsonNode threadStoreNode = rootNode.get("threadStore");
|
JsonNode threadStoreNode = rootNode.get("threadStore");
|
||||||
if (threadStoreNode != null) {
|
if (threadStoreNode != null && !threadStoreNode.isNull()) {
|
||||||
LegacyJsonThreadStore threadStore = jsonProcessor.convertValue(threadStoreNode,
|
LegacyJsonThreadStore threadStore = jsonProcessor.convertValue(threadStoreNode,
|
||||||
LegacyJsonThreadStore.class);
|
LegacyJsonThreadStore.class);
|
||||||
// Migrate thread info to group and contact store
|
// Migrate thread info to group and contact store
|
||||||
|
Loading…
x
Reference in New Issue
Block a user