diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-10-31 12:25:33 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-10-31 12:25:33 +0300 |
commit | d75d0c868fe2c13a7885733031d0a7b65716c440 (patch) | |
tree | 17b526a510224db88f8dbedd3d3a3b1f4bc74fef | |
parent | 063b5bb56127e2b896dc30d81e542f58889650e2 (diff) |
assure Base is not null
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Model/Runner.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Model/Runner.php b/lib/Model/Runner.php index 3106573..37ae39c 100644 --- a/lib/Model/Runner.php +++ b/lib/Model/Runner.php @@ -136,7 +136,9 @@ class Runner implements IRunner { */ public function updateAction(string $action = '', bool $force = false): string { - $this->base->abort(); + if ($this->base !== null) { + $this->base->abort(); + } $n = ''; if (sizeof($this->methodOnKeyPress) > 0) { |