Merge pull request #197 from KAMKEEL/codex/fix-nullpointerexception-in-guiparty

Fix null leader name NPE
This commit is contained in:
Kam authored and GitHub committed 2025-07-28 13:28:18 -04:00
commit d66bc5381e
1 file changed
+1 -1
@@ -219,7 +219,7 @@ public class Party implements IParty {
@Override
public String getPartyLeaderName() {
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
return this.partyLeaderName;
return this.partyLeaderName == null ? "" : this.partyLeaderName;
} else {
EntityPlayer leader = this.getPartyLeader();
if (leader != null)