Fix crash when opening replay browser with no replays

This commit is contained in:
Moulberry committed 2024-11-17 02:18:42 +08:00
1 parent c320ece009
commit 8087d41dec
1 file changed
+1 -1
@@ -120,7 +120,7 @@ public class ReplaySelectionList extends ObjectSelectionList<ReplaySelectionEntr
Path replayDir = this.screen.path;
if (!Files.exists(replayDir) || !Files.isDirectory(replayDir)) {
return CompletableFuture.completedFuture(List.of());
return CompletableFuture.completedFuture(new ArrayList<>());
}
ArrayList<CompletableFuture<PendingSelectionEntry>> futures = new ArrayList<>();