Added a precondition.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@479 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-11-03 00:07:32 +00:00
parent 0df9184758
commit 026994edb6
@@ -21,6 +21,8 @@
package com.threerings.ezgame.data; package com.threerings.ezgame.data;
import com.google.common.base.Preconditions;
import com.threerings.util.StreamableHashMap; import com.threerings.util.StreamableHashMap;
import com.threerings.crowd.client.PlaceController; import com.threerings.crowd.client.PlaceController;
@@ -47,6 +49,8 @@ public class EZGameConfig extends GameConfig
/** Constructs a game config based on the supplied game definition. */ /** Constructs a game config based on the supplied game definition. */
public EZGameConfig (int gameId, GameDefinition gameDef) public EZGameConfig (int gameId, GameDefinition gameDef)
{ {
Preconditions.checkNotNull(gameDef, "Missing GameDefinition");
_gameId = gameId; _gameId = gameId;
_gameDef = gameDef; _gameDef = gameDef;