Sanity checking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1773 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: CompoundEvent.java,v 1.5 2002/07/23 05:52:48 mdb Exp $
|
// $Id: CompoundEvent.java,v 1.6 2002/10/04 01:32:15 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.dobj;
|
package com.threerings.presents.dobj;
|
||||||
|
|
||||||
@@ -33,6 +33,13 @@ public class CompoundEvent extends DEvent
|
|||||||
public CompoundEvent (DObjectManager omgr)
|
public CompoundEvent (DObjectManager omgr)
|
||||||
{
|
{
|
||||||
super(0); // we don't have a single target object oid
|
super(0); // we don't have a single target object oid
|
||||||
|
|
||||||
|
// sanity check
|
||||||
|
if (omgr == null) {
|
||||||
|
String errmsg = "Must receive non-null object manager reference";
|
||||||
|
throw new IllegalArgumentException(errmsg);
|
||||||
|
}
|
||||||
|
|
||||||
_omgr = omgr;
|
_omgr = omgr;
|
||||||
_events = new StreamableArrayList();
|
_events = new StreamableArrayList();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user