Catch the security exception if our invite-test code chokes on
System.getProperty(). We want to leave it in, but we don't want applets to complain about it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@573 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: LobbyController.java,v 1.7 2001/10/23 20:24:10 mdb Exp $
|
// $Id: LobbyController.java,v 1.8 2001/10/25 23:42:33 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.micasa.lobby;
|
package com.threerings.micasa.lobby;
|
||||||
|
|
||||||
@@ -41,18 +41,23 @@ public class LobbyController
|
|||||||
{
|
{
|
||||||
super.willEnterPlace(plobj);
|
super.willEnterPlace(plobj);
|
||||||
|
|
||||||
// if we're testing and a system property has been specified
|
try {
|
||||||
// requesting that we invite another player, do so now
|
// if a system property has been specified requesting that we
|
||||||
String invitee = System.getProperty("invitee");
|
// invite another player, do so now
|
||||||
if (invitee != null) {
|
String invitee = System.getProperty("invitee");
|
||||||
// create a game config object
|
if (invitee != null) {
|
||||||
try {
|
// create a game config object
|
||||||
GameConfig config = _config.getGameConfig();
|
try {
|
||||||
_ctx.getParlorDirector().invite(invitee, config, this);
|
GameConfig config = _config.getGameConfig();
|
||||||
} catch (Exception e) {
|
_ctx.getParlorDirector().invite(invitee, config, this);
|
||||||
Log.warning("Error instantiating game config.");
|
} catch (Exception e) {
|
||||||
Log.logStackTrace(e);
|
Log.warning("Error instantiating game config.");
|
||||||
|
Log.logStackTrace(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch (SecurityException se) {
|
||||||
|
// nothing to see here, move it along...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user