avoid calling isAddressValid with null address

This commit is contained in:
m2049r 2017-10-17 14:48:45 +02:00 committed by GitHub
parent 3466116e2a
commit dcbaa35b57
1 changed files with 2 additions and 2 deletions

View File

@ -699,7 +699,7 @@ public class WalletActivity extends AppCompatActivity implements WalletFragment.
amount = Wallet.getAmountFromString(amountString);
}
if ((paymentId != null) && !Wallet.isPaymentIdValid(paymentId)) {
address = null;
return null;
}
if (Wallet.isAddressValid(address, WalletManager.getInstance().isTestNet())) {
@ -757,4 +757,4 @@ public class WalletActivity extends AppCompatActivity implements WalletFragment.
public void onExchange(AsyncExchangeRate.Listener listener, String currencyA, String currencyB) {
new AsyncExchangeRate(listener).execute(currencyA, currencyB);
}
}
}