Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java =================================================================== diff -u -r52c8c1dcf1233af8cbd4e3447f318146a9975f41 -r2647dbba0102cb224e8c01777f149624eda89fc4 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java (.../QaLearningAction.java) (revision 52c8c1dcf1233af8cbd4e3447f318146a9975f41) +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java (.../QaLearningAction.java) (revision 2647dbba0102cb224e8c01777f149624eda89fc4) @@ -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; }