* Darksteel Reactor - Fixed possible NPE.

This commit is contained in:
LevelX2 2013-12-07 16:33:00 +01:00
parent 25a1843688
commit a783acb66e

View file

@ -89,8 +89,8 @@ class DarksteelReactorStateTriggeredAbility extends StateTriggeredAbility<Darkst
@Override
public boolean checkTrigger(GameEvent event, Game game) {
Permanent permanent = game.getPermanent(getSourceId());
if(permanent.getCounters().getCount(CounterType.CHARGE) >= 20){
Permanent permanent = game.getPermanent(this.getSourceId());
if(permanent != null && permanent.getCounters().getCount(CounterType.CHARGE) >= 20){
return true;
}
return false;