Commit 4adc3ce3 authored by alex yao's avatar alex yao

fix:npe

parent ce501c1e
...@@ -361,6 +361,9 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest { ...@@ -361,6 +361,9 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
if (MapUtils.isEmpty(map)) { if (MapUtils.isEmpty(map)) {
BizAgentApplicationInfoEntity infoEntity = bizAgentApplicationInfoService.getByAgentId(agentId); BizAgentApplicationInfoEntity infoEntity = bizAgentApplicationInfoService.getByAgentId(agentId);
List<Variable> variableStructure = infoEntity.getVariableStructure(); List<Variable> variableStructure = infoEntity.getVariableStructure();
if (CollectionUtils.isEmpty(variableStructure)) {
return result;
}
for (Variable variable : variableStructure) { for (Variable variable : variableStructure) {
AgentApplicationValueMemoryDto valueMemoryDto = new AgentApplicationValueMemoryDto(); AgentApplicationValueMemoryDto valueMemoryDto = new AgentApplicationValueMemoryDto();
valueMemoryDto.setKey(variable.getKey()); valueMemoryDto.setKey(variable.getKey());
......
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