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:
Par Winzell
2010-12-28 14:58:07 +00:00
parent faa7413d3c
commit 2bb7f6e821
@@ -142,7 +142,10 @@ public abstract class CrowdPeerManager extends PeerManager
{
super.initClientInfo(client, info);
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