mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Merge pull request #6289 from jmacxx/fix_npe_payment_method_form
Fix NPE in account name creation
This commit is contained in:
commit
4b24d209af
1 changed files with 4 additions and 2 deletions
|
@ -71,6 +71,8 @@ import java.util.concurrent.TimeUnit;
|
|||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import static bisq.desktop.util.DisplayUtils.createAccountName;
|
||||
import static bisq.desktop.util.FormBuilder.*;
|
||||
|
||||
|
@ -286,9 +288,9 @@ public abstract class PaymentMethodForm {
|
|||
}
|
||||
}
|
||||
|
||||
void setAccountNameWithString(String name) {
|
||||
void setAccountNameWithString(@Nullable String name) {
|
||||
if (useCustomAccountNameToggleButton != null && !useCustomAccountNameToggleButton.isSelected()) {
|
||||
String accountName = createAccountName(paymentAccount.getPaymentMethod().getId(), name);
|
||||
String accountName = createAccountName(paymentAccount.getPaymentMethod().getId(), name == null ? "" : name);
|
||||
accountNameTextField.setText(accountName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue