Merge pull request #5933 from jmacxx/fix_issue_5932

Fix NPE taking offer when an account has no selected currency
This commit is contained in:
Christoph Atteneder 2021-12-22 09:47:26 +01:00 committed by GitHub
commit 963b966f7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -839,8 +839,8 @@ public class GUIUtil {
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;
}