Skip to content

Commit

Permalink
[Core] Fix Uncaught TypeError: e.git is undefined (#2466)
Browse files Browse the repository at this point in the history
Fixes: #2464
  • Loading branch information
mpkorstanje authored Jan 13, 2022
1 parent 908707d commit d6c0473
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed

### Fixed
* [Core] Uncaught TypeError: e.git is undefined ([#2466](https://github.com/cucumber/cucumber-jvm/pull/2466) M.P. Korstanje)

## [7.2.2] (2022-01-07)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,16 @@ private Ci createCi() {
return null;
}

Git git = createGit(ciEnvironment.getGit());
if (git == null) {
return null;
}

return new Ci(
ciEnvironment.getName(),
ciEnvironment.getUrl(),
ciEnvironment.getBuildNumber(),
createGit(ciEnvironment.getGit()));
git);
}

private Git createGit(CiEnvironment.Git ciGit) {
Expand Down

0 comments on commit d6c0473

Please sign in to comment.