fix NPE in portfolio view when market price n/a

This commit is contained in:
jmacxx 2021-03-31 15:13:10 -05:00
parent 58d93f6e04
commit e00532a040
No known key found for this signature in database
GPG key ID: 155297BABFE94A1B

View file

@ -111,7 +111,7 @@ public class TriggerPriceService {
public static boolean wasTriggered(MarketPrice marketPrice, OpenOffer openOffer) {
Price price = openOffer.getOffer().getPrice();
if (price == null) {
if (price == null || marketPrice == null) {
return false;
}