mirror of https://github.com/m2049r/xmrwallet.git
avoid calling isAddressValid with null address
This commit is contained in:
parent
3466116e2a
commit
dcbaa35b57
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue