mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Fixed a possible NPE in hasProperty in the Player class.
This commit is contained in:
@@ -2439,7 +2439,7 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("Chosen")) {
|
||||
if (!source.getChosenPlayer().equals(this)) {
|
||||
if (source.getChosenPlayer() == null || !source.getChosenPlayer().equals(this)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user