fix: transient NRE when opening reaction debugger (#1301)

This commit is contained in:
bd_ 2024-10-19 17:15:33 -07:00 committed by GitHub
parent 9dc342e81e
commit ab4d1fd2f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,7 +128,7 @@ namespace nadena.dev.modular_avatar.core.editor
foreach (var cond in rule.ControllingConditions)
{
var paramName = cond.Parameter;
if (ForcePropertyOverrides.TryGetValue(paramName, out var value))
if (ForcePropertyOverrides?.TryGetValue(paramName, out var value) == true)
{
cond.InitialValue = value;
}