mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
Initiliaze/assign sendResult. Prevents NullPointerException and app from crashing when sending money out.
This commit is contained in:
parent
0ed260bae2
commit
7ffe2a6360
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue