Report an error rather than NPEing if we resume a session with a null
_clobj. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2047 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: CrowdClient.java,v 1.21 2002/12/05 16:39:21 mdb Exp $
|
// $Id: CrowdClient.java,v 1.22 2002/12/09 17:19:04 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.server;
|
package com.threerings.crowd.server;
|
||||||
|
|
||||||
@@ -36,10 +36,16 @@ public class CrowdClient extends PresentsClient
|
|||||||
{
|
{
|
||||||
super.sessionWillResume();
|
super.sessionWillResume();
|
||||||
|
|
||||||
// note that the user's active once more
|
if (_clobj != null) {
|
||||||
BodyObject bobj = (BodyObject)_clobj;
|
// note that the user's active once more
|
||||||
BodyProvider.updateOccupantStatus(
|
BodyObject bobj = (BodyObject)_clobj;
|
||||||
bobj, bobj.location, OccupantInfo.ACTIVE);
|
BodyProvider.updateOccupantStatus(
|
||||||
|
bobj, bobj.location, OccupantInfo.ACTIVE);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
Log.warning("Session resumed but we have no client object!? " +
|
||||||
|
"[client=" + this + "].");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
|
|||||||
Reference in New Issue
Block a user