ting.yin 1 年之前
父节点
当前提交
23c54bc832
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      stmms-web/src/main/java/cn/com/qmth/stmms/admin/exam/MarkGroupController.java

+ 3 - 1
stmms-web/src/main/java/cn/com/qmth/stmms/admin/exam/MarkGroupController.java

@@ -144,7 +144,9 @@ public class MarkGroupController extends BaseExamController {
                     group.getNumber()));
             SelectiveGroup selectiveGroup = selectiveGroupService.findOne(examId, subjectCode, qList.get(0)
                     .getMainNumber());
-            group.setSelectiveIndex(selectiveGroup.getSelectiveIndex());
+            if (selectiveGroup != null) {
+                group.setSelectiveIndex(selectiveGroup.getSelectiveIndex());
+            }
         }
         model.addAttribute("resultList", list);
         model.addAttribute("subject", subject);