Fix NullPointerException in the commits page (#4000)

This commit is contained in:
Naoki Takezoe
2026-04-01 09:57:52 +09:00
committed by GitHub
parent 79a9cfb3bb
commit 6ff90aae1a

View File

@@ -638,7 +638,7 @@ object JGitUtil {
count: Int,
logs: List[CommitInfo]
): (List[CommitInfo], Boolean) =
if (i.hasNext && limit <= 0 || logs.size < limit) {
if (i.hasNext && (limit <= 0 || logs.size < limit)) {
val commit = i.next
getCommitLog(
i,