summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_is_master_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_is_master_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp
index faea3ad66e7..191e04e7f54 100644
--- a/src/mongo/s/commands/cluster_is_master_cmd.cpp
+++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp
@@ -81,7 +81,8 @@ public:
result.append("minWireVersion", WireSpec::instance().minWireVersionIncoming);
const auto parameter = mapFindWithDefault(ServerParameterSet::getGlobal()->getMap(),
- "automationServiceDescriptor");
+ "automationServiceDescriptor",
+ static_cast<ServerParameter*>(nullptr));
if (parameter)
parameter->append(txn, result, "automationServiceDescriptor");