Skip to content

Commit

Permalink
Merge pull request #26 from walva/main
Browse files Browse the repository at this point in the history
fix(json): Call to a member function getValue() on null in JsonContext
  • Loading branch information
Jean-Beru authored Jan 12, 2024
2 parents 69041bb + 489aa85 commit 7f40806
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/HttpCall/HttpCallListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ public function afterStep(AfterStepTested $event)
return true;
}

// Session can be stopped. Ex: using SystemContext
if (!$this->mink->getSession()->isStarted()) {
return;
}

// For now to avoid modification on MinkContext
// We add fallback on Mink
try {
Expand All @@ -63,6 +58,8 @@ public function afterStep(AfterStepTested $event)
// Mink has no response
} catch (\Behat\Mink\Exception\DriverException $e) {
// No Mink
} catch (\WebDriver\Exception\NoSuchDriver $e) {
// A session is either terminated or not started
}
}
}

0 comments on commit 7f40806

Please sign in to comment.