From 47506d404f85780a90ecadee9cfe8a5472ea09e3 Mon Sep 17 00:00:00 2001 From: Momshroom Date: Fri, 1 Mar 2024 21:16:36 -0600 Subject: [PATCH] Fixed NPE when party creation doesn't use password. Solves bug reported here: https://discord.com/channels/526933440214597677/526938425161416727/1213131451235827753 Signed-off-by: Momshroom --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index dd8b79a6a..130a9b996 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -354,7 +354,6 @@ public final class PartyManager { public void createParty(@NotNull McMMOPlayer mcMMOPlayer, @NotNull String partyName, @Nullable String password) { requireNonNull(mcMMOPlayer, "mcMMOPlayer cannot be null!"); requireNonNull(partyName, "partyName cannot be null!"); - requireNonNull(password, "password cannot be null!"); Player player = mcMMOPlayer.getPlayer();