Only apply filter result for PaymentAccountPayloads if it is available

This commit is contained in:
Christoph Atteneder 2021-07-12 10:25:20 +02:00
parent c15958a94d
commit 544aa7c2a0
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -464,11 +464,13 @@ public abstract class DisputeView extends ActivatableView<VBox, Void> implements
return FilterResult.SELLER_NODE_ADDRESS;
}
if (dispute.getContract().getBuyerPaymentAccountPayload().getPaymentDetails().toLowerCase().contains(filter)) {
if (dispute.getContract().getBuyerPaymentAccountPayload() != null &&
dispute.getContract().getBuyerPaymentAccountPayload().getPaymentDetails().toLowerCase().contains(filter)) {
return FilterResult.BUYER_ACCOUNT_DETAILS;
}
if (dispute.getContract().getSellerPaymentAccountPayload().getPaymentDetails().toLowerCase().contains(filter)) {
if (dispute.getContract().getSellerPaymentAccountPayload() != null &&
dispute.getContract().getSellerPaymentAccountPayload().getPaymentDetails().toLowerCase().contains(filter)) {
return FilterResult.SELLER_ACCOUNT_DETAILS;
}