Fix possible NPEs.

This commit is contained in:
Andreas Troelsen 2013-01-28 22:51:52 +01:00
parent ad8a99acda
commit 97ecc97fd4

View File

@ -86,6 +86,9 @@ public class ArenaMasterImpl implements ArenaMaster
}
public Arena getSelectedArena() {
if (selectedArena == null && !arenas.isEmpty()) {
selectedArena = arenas.get(0);
}
return selectedArena;
}