Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyOutputFactory.java =================================================================== diff -u -rf83f367fdcf4b417d1ccbd74cca5dd88dc24df7a -rb69bd7e0a344edac495e0ceaf6955b7240df736e --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyOutputFactory.java (.../SurveyOutputFactory.java) (revision f83f367fdcf4b417d1ccbd74cca5dd88dc24df7a) +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyOutputFactory.java (.../SurveyOutputFactory.java) (revision b69bd7e0a344edac495e0ceaf6955b7240df736e) @@ -131,7 +131,7 @@ String[] textAnswers = null; List answersList = new ArrayList(); SurveyUser user = surveyService.getUserByIDAndSession(learnerId, toolSessionId); - List answerDTOs = surveyService.getQuestionAnswers(toolSessionId, user.getUid()); + List answerDTOs = user == null ? null : surveyService.getQuestionAnswers(toolSessionId, user.getUid()); if (answerDTOs != null && !answerDTOs.isEmpty()) { for (AnswerDTO answerDTO : answerDTOs) { SurveyAnswer surveyAnswer = answerDTO.getAnswer();