Skip to content

Commit

Permalink
Merge pull request bisq-network#5933 from jmacxx/fix_issue_5932
Browse files Browse the repository at this point in the history
Fix NPE taking offer when an account has no selected currency
  • Loading branch information
ripcurlx committed Dec 22, 2021
2 parents 7b03e20 + 9e75345 commit 963b966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/src/main/java/bisq/desktop/util/GUIUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,8 @@ public static boolean isChainHeightSyncedWithinToleranceOrShowPopup(WalletsSetup
return true;
}

public static boolean canCreateOrTakeOfferOrShowPopup(User user, Navigation navigation, TradeCurrency currency) {
if (currency.getCode().equals("BSQ")) {
public static boolean canCreateOrTakeOfferOrShowPopup(User user, Navigation navigation, @Nullable TradeCurrency currency) {
if (currency != null && currency.getCode().equals("BSQ")) {
return true;
}

Expand Down

0 comments on commit 963b966

Please sign in to comment.