From af9945f9db7096213f13776837f0e64aaaba6617 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 6 Jan 2025 21:28:54 -0600 Subject: [PATCH] added null check for endEffect --- src/engine/jobs/AbstractEffectJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/jobs/AbstractEffectJob.java b/src/engine/jobs/AbstractEffectJob.java index 4197dcfb..3eb26592 100644 --- a/src/engine/jobs/AbstractEffectJob.java +++ b/src/engine/jobs/AbstractEffectJob.java @@ -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); }