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:
@@ -21,6 +21,8 @@
|
||||
|
||||
package com.threerings.ezgame.data;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
|
||||
import com.threerings.util.StreamableHashMap;
|
||||
|
||||
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. */
|
||||
public EZGameConfig (int gameId, GameDefinition gameDef)
|
||||
{
|
||||
Preconditions.checkNotNull(gameDef, "Missing GameDefinition");
|
||||
|
||||
_gameId = gameId;
|
||||
_gameDef = gameDef;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user