Hotfix : NPE check

pull/8040/head
Qiuyi LI 2024-10-28 11:51:01 +01:00
parent 28d9bcf9fd
commit 4cd650d242
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ public class AddGiftJob implements Job {
.collect(groupingBy(orderItem -> giftSkuSet.contains(orderItem.getErpCode())));
for (OrderItem orderItem : orderItemMap.get(Boolean.FALSE)) {
String erpCode = orderItem.getErpCode();
if (!nonMatchingRulesApplied && !nonMatchingQuantityRules.isEmpty()) {
if (!nonMatchingRulesApplied && nonMatchingQuantityRules != null) {
for (GiftRule giftRule : nonMatchingQuantityRules) {
if (erpCode.matches(giftRule.getRegex())) {
nonMatchingRulesApplied = true;