Check for null
This commit is contained in:
parent
acc41bf07a
commit
6af634d4e3
@ -113,6 +113,11 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
}
|
||||
|
||||
public Role getRole() {
|
||||
// Hack to fix null roles..
|
||||
if (role == null) {
|
||||
this.role = Role.NORMAL;
|
||||
}
|
||||
|
||||
return this.role;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user