Authored by mali

空指针修复

... ... @@ -99,7 +99,10 @@ public class ProductSearchServiceImpl implements ProductSearchService {
SearchParam searchParam = new SearchParam().buildPageSearchParam(req);
JSONObject data = search(searchParam.getParam(), PRODUCT_LIST_URL);
// 将图片的相对路径转成绝对路径
processProductList(data.getJSONArray("product_list"));
if (null != data) {
processProductList(data.getJSONArray("product_list"));
}
return data;
}
... ...