added null check for endEffect

This commit is contained in:
2025-01-06 21:28:54 -06:00
parent f0594fb1b2
commit af9945f9db
+1 -1
View File
@@ -117,7 +117,7 @@ public abstract class AbstractEffectJob extends AbstractScheduleJob {
}
public void endEffect() {
if (this.eb == null)
if (this.eb == null || this.power == null)
return;
this.eb.endEffect(this.source, this.target, this.trains, this.power, this);
}