forked from External/mage
* Fixed some possible null pointer exceptions.
This commit is contained in:
parent
ab352100f1
commit
c82d6b5566
6 changed files with 171 additions and 160 deletions
|
|
@ -567,7 +567,7 @@ public class TableController {
|
|||
String creator = null;
|
||||
StringBuilder opponent = new StringBuilder();
|
||||
for (Entry<UUID, UUID> entry : userPlayerMap.entrySet()) { // no AI players
|
||||
if (!match.getPlayer(entry.getValue()).hasQuit()) {
|
||||
if (match.getPlayer(entry.getValue()) != null && !match.getPlayer(entry.getValue()).hasQuit()) {
|
||||
User user = UserManager.getInstance().getUser(entry.getKey());
|
||||
if (user != null) {
|
||||
user.ccGameStarted(match.getGame().getId(), entry.getValue());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue