diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java b/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java index f37189b8..c3fff6c8 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java @@ -218,7 +218,7 @@ public class Electrum implements KeystoreFileImport, WalletImport, WalletExport ek.pw_hash_version = 1; if(keystore.getSeed().getType() == DeterministicSeed.Type.ELECTRUM) { ek.seed = keystore.getSeed().getMnemonicString().asString(); - ek.passphrase = keystore.getSeed().getPassphrase(); + ek.passphrase = keystore.getSeed().getPassphrase() == null ? null : keystore.getSeed().getPassphrase().asString(); } else if(keystore.getSeed().getType() == DeterministicSeed.Type.BIP39) { ew.seed_type = "bip39"; }