diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index f50720a77..9b3e7e8b4 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -390,6 +390,11 @@ std::unique_ptr make_basic(const boost::program_options::variabl { auto parsed = tools::login::parse( command_line::get_arg(vm, opts.daemon_login), false, [password_prompter](bool verify) { + if (!password_prompter) + { + MERROR("Password needed without prompt function"); + return boost::optional(); + } return password_prompter("Daemon client password", verify); } );