yangc пре 8 година
родитељ
комит
6fd1ef834c

+ 1 - 1
src/main/java/com/uas/platform/b2c/common/search/service/impl/SearcherServiceImpl.java

@@ -334,7 +334,7 @@ public class SearcherServiceImpl implements SearcherService {
 		if ("goods_brand".equals(collectList)) {
 			if (this.deviceResolver.resolveDevice(request).isMobile()) {
 				for (Map<String, Object> m : collectResult) {
-					m.put("logoUrl", brandDao.findOne(Long.parseLong(m.get("br_id").toString())).getLogoUrl());
+					m.put("logoUrl", brandDao.findOne(Long.parseLong(m.get("br_id").toString())) == null ? null:brandDao.findOne(Long.parseLong(m.get("br_id").toString())).getLogoUrl());
 				}
 			}
 		}