Skip to content

Commit

Permalink
fix: 全局变量-主机如果为空,查看作业实例-全局变量详情可能出现请求内部异常 #2583
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Nov 6, 2023
1 parent ff3643d commit 62bc572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ private ExecuteVariableVO convertToVariableVO(TaskVariableDTO variable) {
vo.setRequired(variable.isRequired() ? 1 : 0);
if (variable.getType() == TaskVariableTypeEnum.HOST_LIST.getType()) {
ServersDTO servers = variable.getTargetServers();
if (servers.getIpList() != null) {
if (servers != null && servers.getIpList() != null) {
TaskTargetVO taskTargetVO = servers.convertToTaskTargetVO();
vo.setTargetValue(taskTargetVO);
}
Expand Down

0 comments on commit 62bc572

Please sign in to comment.