mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 22:16:01 +00:00
Fix crash when opening replay browser with no replays
This commit is contained in:
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<>();
|
||||
|
||||
Reference in new issue
Block a user