We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6817795 commit ef28efcCopy full SHA for ef28efc
tests/MongoDB.Driver.TestHelpers/DriverTestConfiguration.cs
@@ -162,7 +162,7 @@ public static MongoClient CreateClient(
162
clientSettings.ServerApi = CoreTestConfiguration.ServerApi;
163
clientSettingsConfigurator?.Invoke(clientSettings);
164
165
- if (clientSettings.Credential.Mechanism == MongoOidcAuthenticator.MechanismName)
+ if (clientSettings.Credential?.Mechanism == MongoOidcAuthenticator.MechanismName)
166
{
167
OidcCallbackAdapterCachingFactory.Instance.Reset();
168
}
0 commit comments