You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across an Exception when testing CreateAccount(UInt160 scriptHash) in Neo.Wallets.SQLite.UserWallet.
CreateAccount(UInt160 scriptHash) will call AddAccount(UserWalletAccount account, bool is_import) method but line126 Address db_address = ctx.Addresses.FirstOrDefault(p => p.ScriptHash == account.Contract.ScriptHash.ToArray()); in Neo.Wallets.SQLite.UserWallet will throw a NullReferenceException because account.Contract is null.
I think we need to add a nullable check before line126 .
The text was updated successfully, but these errors were encountered:
I came across an Exception when testing
CreateAccount(UInt160 scriptHash)
inNeo.Wallets.SQLite.UserWallet
.CreateAccount(UInt160 scriptHash)
will callAddAccount(UserWalletAccount account, bool is_import)
method but line126Address db_address = ctx.Addresses.FirstOrDefault(p => p.ScriptHash == account.Contract.ScriptHash.ToArray());
inNeo.Wallets.SQLite.UserWallet
will throw a NullReferenceException because account.Contract is null.I think we need to add a nullable check before line126 .
The text was updated successfully, but these errors were encountered: