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,7 +142,10 @@ public abstract class CrowdPeerManager extends PeerManager
|
|||||||
{
|
{
|
||||||
super.initClientInfo(client, info);
|
super.initClientInfo(client, info);
|
||||||
BodyObject body = _locator.forClient(client.getClientObject());
|
BodyObject body = _locator.forClient(client.getClientObject());
|
||||||
((CrowdClientInfo)info).visibleName = body.getVisibleName();
|
// 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
|
@Override // from PeerManager
|
||||||
|
|||||||
Reference in New Issue
Block a user