Skip to content

Commit d6c0473

Browse files
authored
[Core] Fix Uncaught TypeError: e.git is undefined (#2466)
Fixes: #2464
1 parent 908707d commit d6c0473

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616
### Removed
1717

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

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

core/src/main/java/io/cucumber/core/runtime/CucumberExecutionContext.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,16 @@ private Ci createCi() {
7474
return null;
7575
}
7676

77+
Git git = createGit(ciEnvironment.getGit());
78+
if (git == null) {
79+
return null;
80+
}
81+
7782
return new Ci(
7883
ciEnvironment.getName(),
7984
ciEnvironment.getUrl(),
8085
ciEnvironment.getBuildNumber(),
81-
createGit(ciEnvironment.getGit()));
86+
git);
8287
}
8388

8489
private Git createGit(CiEnvironment.Git ciGit) {

0 commit comments

Comments
 (0)