]> nmode's Git Repositories - signal-cli/commitdiff
Fix loading some account files without legacy store
authorAsamK <asamk@gmx.de>
Fri, 15 Jan 2021 17:29:13 +0000 (18:29 +0100)
committerAsamK <asamk@gmx.de>
Fri, 15 Jan 2021 17:29:48 +0000 (18:29 +0100)
src/main/java/org/asamk/signal/manager/storage/SignalAccount.java

index 236c7996c9ccad61cc66ed63bae0f0701cfc49fd..9721ebea10a053745ac22a7da06e3e0cb9892c09 100644 (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