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:
Michael Bayne
2001-10-25 23:42:33 +00:00
parent 304e7bd4b4
commit 20d8b968c2
@@ -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,8 +41,9 @@ 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
// invite another player, do so now
String invitee = System.getProperty("invitee"); String invitee = System.getProperty("invitee");
if (invitee != null) { if (invitee != null) {
// create a game config object // create a game config object
@@ -54,6 +55,10 @@ public class LobbyController
Log.logStackTrace(e); Log.logStackTrace(e);
} }
} }
} catch (SecurityException se) {
// nothing to see here, move it along...
}
} }
public void invitationReceived (int inviteId, String inviter, public void invitationReceived (int inviteId, String inviter,