Skip to content

Commit

Permalink
Fixed: java.lang.NullPointerException on AdventureCompatUtil#getUser
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed May 11, 2024
1 parent cca4edc commit c589fab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ private Optional<User> getUser(UUID playerUUID) {
.getProtocolManager()
.getUsers()
.stream()
.filter(user -> user != null && user.getUUID() != null)
.filter(user -> user.getUUID().equals(playerUUID))
.findFirst();
}
Expand Down

0 comments on commit c589fab

Please sign in to comment.