Commit 811bce64 by 孙昱

sunyu::update::fix bug about updateGoodsQty NPE

parent 467f6fd1
......@@ -537,7 +537,7 @@ public class ShoppingCartMCoffeeServiceImpl {
if (cartGoodsList.size()>1) {
Iterator<CartGoods> cartGoodsIterator = cartGoodsList.iterator();
while (cartGoodsIterator.hasNext()) {
String couponCode = null != cartGoodsIterator.next() ?
String couponCode = null != cartGoodsIterator.next() && StringUtils.isNotEmpty(cartGoodsIterator.next().getCouponCode()) ?
cartGoodsIterator.next().getCouponCode() : "";
if (StringUtils.isNotEmpty(couponCode) && couponCode.equals(goods.getMonthCardInfo().getCardCode()))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment