mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-24 18:17:39 +01:00
Fix possible NPEs.
This commit is contained in:
parent
ad8a99acda
commit
97ecc97fd4
@ -86,6 +86,9 @@ public class ArenaMasterImpl implements ArenaMaster
|
||||
}
|
||||
|
||||
public Arena getSelectedArena() {
|
||||
if (selectedArena == null && !arenas.isEmpty()) {
|
||||
selectedArena = arenas.get(0);
|
||||
}
|
||||
return selectedArena;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user