Skip to content

Commit a38a3af

Browse files
committed
fix: Nullcheck ClientCredentials
1 parent df76446 commit a38a3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.playeveryware.eos/Runtime/Core/Utility/ConfigurationUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static EOSCreateOptions GetEOSCreateOptions()
7777
platformConfig.platformOptionsFlags.Unwrap();
7878
#endif
7979

80-
if (!platformConfig.clientCredentials.IsEncryptionKeyValid())
80+
if (platformConfig.clientCredentials == null || platformConfig.clientCredentials.IsEncryptionKeyValid() == false)
8181
{
8282
Debug.LogError("The encryption key used for the selected client credentials is invalid. Please see your platform configuration.");
8383
}

0 commit comments

Comments
 (0)