From 30ae26c8d5a6b6719bcfa7aa7ec15eb00b00f469 Mon Sep 17 00:00:00 2001 From: Andy Baker Date: Sun, 22 Dec 2024 23:38:16 +0000 Subject: [PATCH] Avoid NRE when secrets are missing --- Assets/Scripts/Sharing/OAuth2Identity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Sharing/OAuth2Identity.cs b/Assets/Scripts/Sharing/OAuth2Identity.cs index a9e66905c9..cfea48f6fb 100644 --- a/Assets/Scripts/Sharing/OAuth2Identity.cs +++ b/Assets/Scripts/Sharing/OAuth2Identity.cs @@ -103,7 +103,7 @@ private static void LogOutAll() public bool IsGoogle => m_Service == SecretsConfig.Service.Google; public UserCredential UserCredential => m_CredentialRequest?.UserCredential; - private SecretsConfig.ServiceAuthData ServiceAuthData => App.Config.Secrets[m_Service]; + private SecretsConfig.ServiceAuthData ServiceAuthData => App.Config.Secrets?[m_Service]; public string ClientId => ServiceAuthData?.ClientId; private string ClientSecret => ServiceAuthData?.ClientSecret;