diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityJoinRequestInfo.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityJoinRequestInfo.java index 1eb973551..3e42d6bcd 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityJoinRequestInfo.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityJoinRequestInfo.java @@ -36,6 +36,10 @@ public class CommunityJoinRequestInfo public void update(String name) { + if (name == null) + { + return; + } Name = name; buildIcon(); } diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java index 3ded2db87..1751eddf2 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java @@ -182,6 +182,10 @@ public class CommunityManager extends MiniDbClientPlugin { return; } + if (name == null) + { + return; + } _loadedCommunities.values().stream().filter(community -> community.getMembers().containsKey(uuid) && !community.getMembers().get(uuid).Name.equalsIgnoreCase(name)).forEach(community -> { community.getMembers().get(uuid).updateName(name); @@ -196,6 +200,10 @@ public class CommunityManager extends MiniDbClientPlugin { return; } + if (name == null) + { + return; + } _loadedCommunities.values().stream().filter(community -> community.getJoinRequests().containsKey(uuid) && !community.getJoinRequests().get(uuid).Name.equalsIgnoreCase(name)).forEach(community -> { community.getJoinRequests().get(uuid).update(name); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityMemberInfo.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityMemberInfo.java index 46e2a5d76..03e98963f 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityMemberInfo.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityMemberInfo.java @@ -62,6 +62,10 @@ public class CommunityMemberInfo public void updateName(String name) { + if (name == null) + { + return; + } Name = name; buildIcons(); }