wangliang 1 жил өмнө
parent
commit
2cdcb9e26f

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/entity/TEExamStudentLog.java

@@ -162,7 +162,7 @@ public class TEExamStudentLog implements Serializable {
             if (Objects.isNull(currentIp) || Objects.equals(currentIp.trim(), "")) {
                 currentIp = ip;
                 continue;
-            } else if (Objects.nonNull(currentIp) && !Objects.equals(currentIp.trim(), "") && !Objects.equals(currentIp, ip)) {
+            } else if (Objects.nonNull(currentIp) && Objects.nonNull(ip) && !Objects.equals(currentIp.trim(), "") && !Objects.equals(currentIp, ip)) {
                 if (!Objects.equals(teExamStudentLogList.get(i).getType(), ExamRecordStatusEnum.FINISHED.name())
                         || (Objects.equals(teExamStudentLogList.get(i).getType(), ExamRecordStatusEnum.FINISHED.name()) && Objects.nonNull(ip))) {
                     teExamStudentLogList.get(i).setIpChange(true);