mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-06 12:36:55 +02:00
Fix NullPointerException in the commits page (#4000)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user