From d930ba161eb4ffec12f6623ab47f6194bafb761e Mon Sep 17 00:00:00 2001 From: AntiD2ta Date: Thu, 26 Dec 2019 16:53:20 -0500 Subject: [PATCH] [outputs] refs #302 - Solve bug Returns if call to ScanUnspentOutputs fails --- src/models/modelWallets.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/models/modelWallets.go b/src/models/modelWallets.go index 7e5104bf..10d9f715 100644 --- a/src/models/modelWallets.go +++ b/src/models/modelWallets.go @@ -123,6 +123,9 @@ func (m *ModelWallets) loadModel() { for addresses.Next() { a := addresses.Value() outputs := a.GetCryptoAccount().ScanUnspentOutputs() + if outputs == nil { + return + } mo := NewModelOutputs(nil) mo.SetAddress(a.String()) qOutputs := make([]*QOutput, 0)