If we're going to support the idea that things can log in without a body, we can't have the peer manager NPE when that happens.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6394 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -142,8 +142,11 @@ public abstract class CrowdPeerManager extends PeerManager
|
||||
{
|
||||
super.initClientInfo(client, info);
|
||||
BodyObject body = _locator.forClient(client.getClientObject());
|
||||
// body-less entities don't get a visibleName and so can't take part in chatting
|
||||
if (body != null) {
|
||||
((CrowdClientInfo)info).visibleName = body.getVisibleName();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // from PeerManager
|
||||
protected void didInit ()
|
||||
|
||||
Reference in New Issue
Block a user