diff --git a/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceImpl.java b/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceImpl.java index 07303d2e156f3440cc61f63c83e14e8c10c37ab3..d6ea01568f0dd07e243ff9f38f281416837c4e6d 100644 --- a/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceImpl.java +++ b/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceImpl.java @@ -640,7 +640,14 @@ public class AutoexecServiceImpl implements AutoexecService, IAutoexecServiceCro return true; } for (int i = 0; i < validateList.size(); i++) { - JSONObject validateObj = validateList.getJSONObject(i); + Object validate = validateList.get(i); + if (validate == null) { + continue; + } + if (!(validate instanceof JSONObject)) { + continue; + } + JSONObject validateObj = (JSONObject) validate; if (MapUtils.isEmpty(validateObj)) { continue; }