mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
fix 'cannot cast Null to String'
This commit is contained in:
parent
8cbca16a3a
commit
2e6ac40e20
1 changed files with 3 additions and 1 deletions
|
@ -406,7 +406,9 @@ abstract class SWB {
|
|||
|
||||
if (walletbackup['mnemonic'] == null) {
|
||||
// probably private key based
|
||||
privateKey = walletbackup['privateKey'] as String;
|
||||
if (walletbackup['privateKey'] != null) {
|
||||
privateKey = walletbackup['privateKey'] as String;
|
||||
}
|
||||
} else {
|
||||
if (walletbackup['mnemonic'] is List) {
|
||||
List<String> mnemonicList = (walletbackup['mnemonic'] as List<dynamic>)
|
||||
|
|
Loading…
Reference in a new issue