Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Commit 5fb76e8

Browse files
imlucaskangas
authored andcommitted
INT-1691: Fix TypeError: Cannot read property 'match' of undefined in parseBuildInfo() (#93)
1 parent 4f24b72 commit 5fb76e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function parseBuildInfo(resp) {
5454
enterprise_module: false
5555
};
5656
// cover both cases of detecting enterprise module, see SERVER-18099
57-
if (resp.gitVersion.match(/enterprise/)) {
57+
if (resp.gitVersion && resp.gitVersion.match(/enterprise/)) {
5858
res.enterprise_module = true;
5959
}
6060
if (resp.modules && resp.modules.indexOf('enterprise') !== -1) {

0 commit comments

Comments
 (0)