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

修改空指针异常

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