From 9a95ec408d9dc263af7d27f6fa432946decbd9a2 Mon Sep 17 00:00:00 2001 From: "Richard T. Carback III" <rick.carback@gmail.com> Date: Thu, 19 May 2022 21:00:02 +0000 Subject: [PATCH] Fix backup test --- backup/backup.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backup/backup.go b/backup/backup.go index 568ed33ff..0e025f3fe 100644 --- a/backup/backup.go +++ b/backup/backup.go @@ -8,10 +8,10 @@ package backup import ( - "gitlab.com/elixxir/client/api/messenger" "sync" "time" + "gitlab.com/elixxir/client/api/messenger" "gitlab.com/elixxir/client/storage/versioned" "gitlab.com/elixxir/crypto/cyclic" "gitlab.com/elixxir/primitives/fact" @@ -316,7 +316,11 @@ func (b *Backup) assembleBackup() backup.Backup { } // Get facts - bu.UserDiscoveryRegistration.FactList = b.ud.GetFacts() + if b.ud != nil { + bu.UserDiscoveryRegistration.FactList = b.ud.GetFacts() + } else { + bu.UserDiscoveryRegistration.FactList = fact.FactList{} + } // Get contacts bu.Contacts.Identities = b.e2e.GetAllPartnerIDs() -- GitLab