Skip to content

Commit

Permalink
SERVER-25488 __sanitizeMatch needs a check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
hptabster committed Sep 15, 2016
1 parent 872bf6a commit 24c134c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/shell/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ if (typeof TestData == "undefined") {

function __sanitizeMatch(flag) {
var sanitizeMatch = /-fsanitize=([^\s]+) /.exec(getBuildInfo()["buildEnvironment"]["ccflags"]);
if (flag && RegExp(flag).exec(sanitizeMatch[1])) {
if (flag && sanitizeMatch && RegExp(flag).exec(sanitizeMatch[1])) {
return true;
} else {
return false;
Expand Down

0 comments on commit 24c134c

Please sign in to comment.