mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 09:03:31 +07:00
[git] IDEA-120042 Protect against zero timestamp
This commit is contained in:
@@ -43,10 +43,10 @@ class VcsLogMultiRepoJoiner {
|
||||
|
||||
@NotNull
|
||||
private static TimedVcsCommit findLatestCommit(@NotNull Set<TimedVcsCommit> commits) {
|
||||
long maxTimeStamp = 0;
|
||||
long maxTimeStamp = Long.MIN_VALUE;
|
||||
TimedVcsCommit lastCommit = null;
|
||||
for (TimedVcsCommit commit : commits) {
|
||||
if (commit.getTime() > maxTimeStamp) {
|
||||
if (commit.getTime() >= maxTimeStamp) {
|
||||
maxTimeStamp = commit.getTime();
|
||||
lastCommit = commit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user