Эх сурвалжийг харах

Merge branch 'feature/exam' into dev
合并冲突

guqiang 2 өдөр өмнө
parent
commit
5e8adbd23c

+ 1 - 1
src/Hotline.Application/Exam/Service/Questions/QuestionService.cs

@@ -980,7 +980,7 @@ namespace Hotline.Application.Exam.Service.Questions
 
 
             var questionAnswerDto = _mapper.Map<QuestionAnswerDto>(questionAnswer);
             var questionAnswerDto = _mapper.Map<QuestionAnswerDto>(questionAnswer);
 
 
-            return questionAnswerDto;
+            return questionAnswerDto ?? new QuestionAnswerDto();
         }
         }
 
 
         private async Task<List<QuestionTagDto>> GetQuestionTags(EntityQueryRequest entityQueryRequest)
         private async Task<List<QuestionTagDto>> GetQuestionTags(EntityQueryRequest entityQueryRequest)