Showing
1 changed file
with
1 additions
and
1 deletions
@@ -260,7 +260,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService, | @@ -260,7 +260,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService, | ||
260 | bo.setId(csc.getId()); | 260 | bo.setId(csc.getId()); |
261 | bo.setProductId(csc.getProductId()); | 261 | bo.setProductId(csc.getProductId()); |
262 | bo.setSku(csc.getSku()); | 262 | bo.setSku(csc.getSku()); |
263 | - bo.setProductName(productMap.get(csc.getProductId()).getProductName()); | 263 | + bo.setProductName(null == productMap.get(csc.getProductId()) ? "" : productMap.get(csc.getProductId()).getProductName()); |
264 | bo.setSizeName(sizeIdNameMap.get(csc.getSizeId())); | 264 | bo.setSizeName(sizeIdNameMap.get(csc.getSizeId())); |
265 | bo.setChannelPrice(getFormatPrice(csc.getChannelPrice())); | 265 | bo.setChannelPrice(getFormatPrice(csc.getChannelPrice())); |
266 | bo.setChannelUrl(csc.getChannelUrl()); | 266 | bo.setChannelUrl(csc.getChannelUrl()); |
-
Please register or login to post a comment