Skip to content

Commit

Permalink
Avoid NRE when secrets are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Dec 22, 2024
1 parent dfa224f commit 30ae26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Sharing/OAuth2Identity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 30ae26c

Please sign in to comment.