mirror of https://github.com/jeecgboot/jeecg-boot
Hotfix : NPE check
parent
28d9bcf9fd
commit
4cd650d242
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue