mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Fix potential crash that could happen when legacy thread.id is null or empty
This commit is contained in:
parent
286070c054
commit
416f43b225
1 changed files with 3 additions and 0 deletions
|
@ -203,6 +203,9 @@ public class SignalAccount {
|
|||
LegacyJsonThreadStore threadStore = jsonProcessor.convertValue(threadStoreNode, LegacyJsonThreadStore.class);
|
||||
// Migrate thread info to group and contact store
|
||||
for (ThreadInfo thread : threadStore.getThreads()) {
|
||||
if (thread.id == null || thread.id.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
ContactInfo contactInfo = contactStore.getContact(new SignalServiceAddress(null, thread.id));
|
||||
if (contactInfo != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue