Prevent Name value in info classes from being null
This commit is contained in:
parent
0a69562579
commit
ac8d8aa69c
@ -36,6 +36,10 @@ public class CommunityJoinRequestInfo
|
||||
|
||||
public void update(String name)
|
||||
{
|
||||
if (name == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Name = name;
|
||||
buildIcon();
|
||||
}
|
||||
|
@ -182,6 +182,10 @@ public class CommunityManager extends MiniDbClientPlugin<CommunityMemberData>
|
||||
{
|
||||
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<CommunityMemberData>
|
||||
{
|
||||
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);
|
||||
|
@ -62,6 +62,10 @@ public class CommunityMemberInfo
|
||||
|
||||
public void updateName(String name)
|
||||
{
|
||||
if (name == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Name = name;
|
||||
buildIcons();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user