Fix crash when opening replay browser with no replays

This commit is contained in:
Moulberry committed 2024-11-17 02:14:30 +08:00
1 parent e7b846486c
commit f39d014c99
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<>();