mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 06:07:27 +00:00
Merge pull request #197 from KAMKEEL/codex/fix-nullpointerexception-in-guiparty
Fix null leader name NPE
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user