|
@@ -34,9 +34,20 @@ public class DependencyUtil {
|
|
|
if (type.equals("point")) {
|
|
|
String point = (String) param.get("point");
|
|
|
result = new JSONObject();
|
|
|
- List<ObjectInfo> ObjectInfoList = Repository.point2ObjectInfoList.get(point);
|
|
|
- for (ObjectInfo ObjectInfo : ObjectInfoList) {
|
|
|
- result.put(ObjectInfo.objId, ObjectInfo.infoCode);
|
|
|
+ if (Repository.point2ObjectInfoList.containsKey(point)) {
|
|
|
+ List<ObjectInfo> ObjectInfoList = Repository.point2ObjectInfoList.get(point);
|
|
|
+ for (ObjectInfo ObjectInfo : ObjectInfoList) {
|
|
|
+ result.put(ObjectInfo.objId, ObjectInfo.infoCode);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (type.equals("set")) {
|
|
|
+ String point = (String) param.get("set");
|
|
|
+ result = new JSONObject();
|
|
|
+ if (Repository.set2ObjectInfoList.containsKey(point)) {
|
|
|
+ List<ObjectInfo> ObjectInfoList = Repository.set2ObjectInfoList.get(point);
|
|
|
+ for (ObjectInfo ObjectInfo : ObjectInfoList) {
|
|
|
+ result.put(ObjectInfo.objId, ObjectInfo.infoCode);
|
|
|
+ }
|
|
|
}
|
|
|
} else if (type.equals("path")) {
|
|
|
JSONArray path = (JSONArray) param.get("path");
|