mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 11:45:51 +00:00
Initiliaze/assign sendResult. Prevents NullPointerException and app from crashing when sending money out.
This commit is contained in:
parent
0ed260bae2
commit
7ffe2a6360
@ -36,7 +36,7 @@ public class SendMoneyController {
|
|||||||
try {
|
try {
|
||||||
Address destination = new Address(Main.params, address.getText());
|
Address destination = new Address(Main.params, address.getText());
|
||||||
Wallet.SendRequest req = Wallet.SendRequest.emptyWallet(destination);
|
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>() {
|
Futures.addCallback(sendResult.broadcastComplete, new FutureCallback<Transaction>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Transaction result) {
|
public void onSuccess(Transaction result) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user