Authored by hugufei

fix

@@ -61,7 +61,12 @@ class UserPersionalFactorComponent { @@ -61,7 +61,12 @@ class UserPersionalFactorComponent {
61 JSONObject result = serviceCaller.call(SERVICE_NAME,userPersionalFactorReq,JSONObject.class,timeOut); 61 JSONObject result = serviceCaller.call(SERVICE_NAME,userPersionalFactorReq,JSONObject.class,timeOut);
62 RECALL_NEW_LOGGER.info("UserPersionalFactorComponent.result is[{}]",result.toJSONString()); 62 RECALL_NEW_LOGGER.info("UserPersionalFactorComponent.result is[{}]",result.toJSONString());
63 JSONObject userPersonalFactorRspJSon = result.getJSONObject("data"); 63 JSONObject userPersonalFactorRspJSon = result.getJSONObject("data");
64 - return JSON.toJavaObject(userPersonalFactorRspJSon,UserPersonalFactorRsp.class); 64 + UserPersonalFactorRsp rsp = JSON.toJavaObject(userPersonalFactorRspJSon,UserPersonalFactorRsp.class);
  65 + if(rsp==null ||rsp.getBrandIds()==null || rsp.getSortPriceAreas()==null){
  66 + RECALL_NEW_LOGGER.error("query bigdata fail, result is [{}]",result.toJSONString());
  67 + return null;
  68 + }
  69 + return rsp;
65 }catch (Exception e){ 70 }catch (Exception e){
66 logger.error(e.getMessage(),e); 71 logger.error(e.getMessage(),e);
67 return null; 72 return null;