Commit 90ce1e53 by guojuxing

判空修复

parent f3f884de
......@@ -55,7 +55,11 @@ public class StoreResourceAuthUtils {
Set<String> authRegionSet = new HashSet<>();
String searchParam = storeWidget.getSearchParam();
JSONObject json = JSON.parseArray(searchParam).getJSONObject(0);
JSONArray jsonArr = JSON.parseArray(searchParam);
if (jsonArr.isEmpty()) {
return authRegionSet;
}
JSONObject json = jsonArr.getJSONObject(0);
JSONArray list = json.getJSONArray("list");
Set<String> storeFieldKey = getStoreFieldKey();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment