mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-14 03:17:19 +00:00
Initiliaze/assign sendResult. Prevents NullPointerException and app from crashing when sending money out.
This commit is contained in:
@@ -36,7 +36,7 @@ public class SendMoneyController {
|
||||
try {
|
||||
Address destination = new Address(Main.params, address.getText());
|
||||
Wallet.SendRequest req = Wallet.SendRequest.emptyWallet(destination);
|
||||
Main.bitcoin.wallet().sendCoins(req);
|
||||
sendResult = Main.bitcoin.wallet().sendCoins(req);
|
||||
Futures.addCallback(sendResult.broadcastComplete, new FutureCallback<Transaction>() {
|
||||
@Override
|
||||
public void onSuccess(Transaction result) {
|
||||
|
||||
Reference in New Issue
Block a user