Skip to content

Commit

Permalink
[#13109] IndexOutOfBoundsException encountered by LogsProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwinn11 committed May 25, 2024
1 parent 9ebbb91 commit 0ff1c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/teammates/logic/api/LogsProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public int getNumberOfLogsForEvent(Instant startTime, Instant endTime, LogEvent
List<GeneralLogEntry> logs = logFetchResults.getLogEntries();
total += logs.size();
if (logFetchResults.getHasNextPage() && !logs.isEmpty()) {
logStartTime = logs.get(logs.size()-1).getTimestamp();
logStartTime = logs.get(logs.size() - 1).getTimestamp();
} else {
break;
}
Expand Down

0 comments on commit 0ff1c58

Please sign in to comment.