Commit 9c34cbfd authored by jennie chen's avatar jennie chen

修改空指针异常

parent b8fab54e
...@@ -137,6 +137,7 @@ public class AgentApplicationInfoConvert { ...@@ -137,6 +137,7 @@ public class AgentApplicationInfoConvert {
commConfig.setContinuousQuestionTurn(entity.getContinuousQuestionTurn()); commConfig.setContinuousQuestionTurn(entity.getContinuousQuestionTurn());
List<Variable> variables = new ArrayList<>(); List<Variable> variables = new ArrayList<>();
String[] variableStructure = entity.getVariableStructure(); String[] variableStructure = entity.getVariableStructure();
if(variableStructure != null){
for (int i = 0; i < variableStructure.length; i++) { for (int i = 0; i < variableStructure.length; i++) {
Variable variable = new Variable(); Variable variable = new Variable();
String input = variableStructure[i]; String input = variableStructure[i];
...@@ -149,6 +150,7 @@ public class AgentApplicationInfoConvert { ...@@ -149,6 +150,7 @@ public class AgentApplicationInfoConvert {
variables.add(variable); variables.add(variable);
} }
} }
}
commConfig.setVariableStructure(variables); commConfig.setVariableStructure(variables);
commConfig.setIsLongMemory(entity.getIsLongMemory()); commConfig.setIsLongMemory(entity.getIsLongMemory());
......
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