Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java,v diff -u -r1.53 -r1.54 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java 4 Jun 2014 12:55:45 -0000 1.53 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java 12 Aug 2014 16:08:39 -0000 1.54 @@ -136,8 +136,8 @@ mapAnswers.put(questionIndexInteger.toString(), answer); mapAnswersPresentable.put(questionIndexInteger.toString(), answer); - Map questionContentMap = generalLearnerFlowDTO.getMapQuestionContentLearner(); - QaQuestionDTO dto = questionContentMap.get(questionIndexInteger); + Map questionMap = generalLearnerFlowDTO.getMapQuestionContentLearner(); + QaQuestionDTO dto = questionMap.get(questionIndexInteger); if (dto.isRequired() && isEmpty(answer)) { errors.add(Globals.ERROR_KEY, new ActionMessage("error.required", questionIndexInteger)); forwardName = QaAppConstants.LOAD_LEARNER; @@ -159,7 +159,7 @@ int numQuestions = questionMap.size(); Integer finalQuestionIndex = new Integer(numQuestions); QaQuestionDTO dto = questionMap.get(finalQuestionIndex); - if (dto.isRequired() && isEmpty(mapAnswersPresentable.get(finalQuestionIndex).toString())) { + if (dto.isRequired() && isEmpty(mapAnswersPresentable.get(finalQuestionIndex.toString()))) { errors.add(Globals.ERROR_KEY, new ActionMessage("error.required", finalQuestionIndex)); forwardName = QaAppConstants.LOAD_LEARNER; }