mirror of
https://github.com/wownero/wownerujo.git
synced 2026-11-22 00:03:58 +01:00
avoid calling isAddressValid with null address
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user