deason 2 ani în urmă
părinte
comite
c15b64617e

+ 2 - 2
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamRecordDataServiceImpl.java

@@ -416,8 +416,8 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
             log.warn("calcExamScore examRecordDataId:{}, totalQuestion:{}, totalObjective:{}, cost:{}ms",
                     req.getExamRecordDataId(), examQuestions.size(), totalObjective, cost);
             return resp;
-        } catch (NullPointerException e) {
-            log.error(e.getMessage(), e);
+        } catch (Exception e) {
+            log.error("计算考试分数异常!examRecordDataId:{} err:{}", req.getExamRecordDataId(), e.getMessage());
             throw new StatusException("计算考试分数异常!examRecordDataId=" + req.getExamRecordDataId());
         }
     }