mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 14:38:50 +00:00
Fix crash when opening replay browser with no replays
This commit is contained in:
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;
|
Path replayDir = this.screen.path;
|
||||||
|
|
||||||
if (!Files.exists(replayDir) || !Files.isDirectory(replayDir)) {
|
if (!Files.exists(replayDir) || !Files.isDirectory(replayDir)) {
|
||||||
return CompletableFuture.completedFuture(List.of());
|
return CompletableFuture.completedFuture(new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayList<CompletableFuture<PendingSelectionEntry>> futures = new ArrayList<>();
|
ArrayList<CompletableFuture<PendingSelectionEntry>> futures = new ArrayList<>();
|
||||||
|
|||||||
Reference in new issue
Block a user