forked from External/mage
fixed several NPEs on server
This commit is contained in:
parent
621e0fb4b1
commit
ca6e1556f0
5 changed files with 16 additions and 7 deletions
|
|
@ -65,7 +65,7 @@ public class ChatSession {
|
|||
}
|
||||
|
||||
public void kill(UUID userId) {
|
||||
if (clients.containsKey(userId)) {
|
||||
if (userId != null && clients.containsKey(userId)) {
|
||||
String userName = clients.get(userId);
|
||||
clients.remove(userId);
|
||||
broadcast(userName, " has left", MessageColor.BLACK);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue