chenshilong 7 lat temu
rodzic
commit
25d061eb83
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      Units/ProjectData.pas

+ 4 - 1
Units/ProjectData.pas

@@ -2294,7 +2294,10 @@ end;
 
 function TProjectData.LastCheckerIsOwner: Boolean;
 begin
-  Result := PHPWeb.UserID = FCheckers.LastChecker.ID;
+  if (FCheckers.LastChecker = nil) then
+    Result := false
+  else
+    Result := PHPWeb.UserID = FCheckers.LastChecker.ID;
 end;
 
 end.