Skip to content

Commit

Permalink
Update eternalcore-core/src/main/java/com/eternalcode/core/feature/wa…
Browse files Browse the repository at this point in the history
…rp/data/WarpDataDataRepositoryImpl.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
vLuckyyy and coderabbitai[bot] authored Jan 12, 2025
1 parent a8ac2e2 commit 708224f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void edit(Consumer<Map<String, WarpDataConfigRepresenter>> editor) {

@Override
public CompletableFuture<Optional<Warp>> getWarp(String name) {
return CompletableFuture.completedFuture(Optional.of(this.warpDataConfig.warps.get(name))
return CompletableFuture.completedFuture(Optional.ofNullable(this.warpDataConfig.warps.get(name))
.map(warpDataConfigRepresenter -> new WarpImpl(name, warpDataConfigRepresenter.position, warpDataConfigRepresenter.permissions)));
}

Expand Down

0 comments on commit 708224f

Please sign in to comment.