fix NPE in portfolio view when market price n/a

This commit is contained in:
jmacxx 2021-03-31 15:13:10 -05:00 committed by Christoph Atteneder
parent d567170bdb
commit 089e476901
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

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;
}