Skip to content

Commit 69ed3f3

Browse files
SilverFiresamdark
authored andcommitted
Prevent NPE in Yii2 module (#5259)
1 parent c94bb66 commit 69ed3f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Codeception/Module/Yii2.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ public function _after(TestInterface $test)
351351
$this->loadedFixtures = [];
352352
}
353353

354-
$this->client->resetApplication();
354+
if ($this->client !== null) {
355+
$this->client->resetApplication();
356+
}
355357

356358
if (isset($this->connectionWatcher)) {
357359
$this->connectionWatcher->stop();

0 commit comments

Comments
 (0)