From e3d0a81a2c0e53ad852379f5198d57f2352f5872 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 1 Apr 2011 22:32:37 +0000 Subject: [PATCH] Ray has convinced me that the zero-args constructor is less weird. Though I think that's probably just because we're used to it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6577 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/crowd/data/OccupantInfo.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/threerings/crowd/data/OccupantInfo.java b/src/main/java/com/threerings/crowd/data/OccupantInfo.java index 852decf72..d630f5471 100644 --- a/src/main/java/com/threerings/crowd/data/OccupantInfo.java +++ b/src/main/java/com/threerings/crowd/data/OccupantInfo.java @@ -102,11 +102,14 @@ public class OccupantInfo extends SimpleStreamableObject */ public OccupantInfo (BodyObject body) { - if (body != null) { // body is null when unserializing - bodyOid = Integer.valueOf(body.getOid()); - username = body.getVisibleName(); - status = body.status; - } + bodyOid = Integer.valueOf(body.getOid()); + username = body.getVisibleName(); + status = body.status; + } + + /** Used for unserialization. */ + public OccupantInfo () + { } /** Access to the body object id as an int. */