Protect against NPE if we try to send cards to an absent player.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3829 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -110,7 +110,9 @@ public class CardGameManager extends GameManager
|
|||||||
if (!isAI(playerIndex)) {
|
if (!isAI(playerIndex)) {
|
||||||
ClientObject clobj = (ClientObject)
|
ClientObject clobj = (ClientObject)
|
||||||
PresentsServer.omgr.getObject(_playerOids[playerIndex]);
|
PresentsServer.omgr.getObject(_playerOids[playerIndex]);
|
||||||
CardGameSender.sendHand(clobj, _cardgameobj.getOid(), hand);
|
if (clobj != null) {
|
||||||
|
CardGameSender.sendHand(clobj, _cardgameobj.getOid(), hand);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return hand;
|
return hand;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user