Authored by mali

空指针修复

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