xiatian преди 8 месеца
родител
ревизия
5c914927d5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      stmms-biz/src/main/java/cn/com/qmth/stmms/biz/basic/service/impl/PrivilegeServiceImpl.java

+ 1 - 1
stmms-biz/src/main/java/cn/com/qmth/stmms/biz/basic/service/impl/PrivilegeServiceImpl.java

@@ -80,7 +80,7 @@ public class PrivilegeServiceImpl extends BaseQueryService<Privilege> implements
         initSchoolViewerPrivilege(schoolId);
 
         SystemAuth systemAuth = authService.findOne();
-        if (SystemAuthType.ONLINE.equals(systemAuth.getType())) {
+        if (systemAuth != null && SystemAuthType.ONLINE.equals(systemAuth.getType())) {
             disablePrivilege(schoolId, new String[] { "user_list-help_video", "exam_mark-group-help_video",
                     "exam_inspected_info-list-help_video" });
         }