Showing
1 changed file
with
2 additions
and
0 deletions
@@ -58,8 +58,10 @@ public class RobotRelatedQuestionMqListener extends AbstractMqListener { | @@ -58,8 +58,10 @@ public class RobotRelatedQuestionMqListener extends AbstractMqListener { | ||
58 | RobotQuestionIndexBO robotQuestionIndexBO = new RobotQuestionIndexBO(); | 58 | RobotQuestionIndexBO robotQuestionIndexBO = new RobotQuestionIndexBO(); |
59 | robotQuestionIndexBO.setId(robotRelatedQuestion.getId()); | 59 | robotQuestionIndexBO.setId(robotRelatedQuestion.getId()); |
60 | robotQuestionIndexBO.setQuestion(robotRelatedQuestion.getQuestion()); | 60 | robotQuestionIndexBO.setQuestion(robotRelatedQuestion.getQuestion()); |
61 | + if(robotKnowledgeBase!=null){ | ||
61 | robotQuestionIndexBO.setKeywords(robotKnowledgeBase.getKeywords()); | 62 | robotQuestionIndexBO.setKeywords(robotKnowledgeBase.getKeywords()); |
62 | robotQuestionIndexBO.setSynonym(robotKnowledgeBase.getSynonym()); | 63 | robotQuestionIndexBO.setSynonym(robotKnowledgeBase.getSynonym()); |
64 | + } | ||
63 | String idValue = robotQuestionIndexBO.getId().toString(); | 65 | String idValue = robotQuestionIndexBO.getId().toString(); |
64 | indexService.updateIndexData(this.getIndexName(), idValue, robotQuestionIndexBO); | 66 | indexService.updateIndexData(this.getIndexName(), idValue, robotQuestionIndexBO); |
65 | } | 67 | } |
-
Please register or login to post a comment