From ddf0786ef7d36485b22f8682235187ab7a3585e3 Mon Sep 17 00:00:00 2001 From: jpk68 Date: Sat, 15 Aug 2026 14:31:19 -0400 Subject: [PATCH] simplewallet: fix crash in sweep commands when address is omitted --- src/simplewallet/simplewallet.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 04bac1928..4c8f8c93f 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -6975,6 +6975,13 @@ bool simple_wallet::sweep_main(uint32_t account, uint64_t below, const std::vect local_args.pop_back(); } + if (local_args.empty()) + { + fail_msg_writer() << tr("No address given"); + print_usage(); + return true; + } + cryptonote::address_parse_info info; if (!cryptonote::get_account_address_from_str_or_url(info, m_wallet->nettype(), local_args[0], oa_prompter)) {