Skip to content

Commit 8ead0a2

Browse files
committed
fix: Nullcheck CompDeploymentString
1 parent 0230e19 commit 8ead0a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.playeveryware.eos/Runtime/Core/Config/PlatformConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ protected virtual void MigrateNonOverrideableConfigValues(EOSConfig overrideValu
419419
string compDeploymentString = mainNonOverrideableConfig.deploymentID?.ToLower();
420420

421421
foreach(Named<Deployment> dep in productConfig.Environments.Deployments)
422-
{
423-
if (!compDeploymentString.Equals(dep.Value.DeploymentId.ToString("N").ToLowerInvariant()))
422+
423+
if (!string.IsNullOrEmpty(compDeploymentString) && !compDeploymentString.Equals(dep.Value.DeploymentId.ToString("N").ToLowerInvariant()))
424424
{
425425
continue;
426426
}

0 commit comments

Comments
 (0)