fix: transient NRE when opening reaction debugger

This commit is contained in:
bd_ 2024-10-19 15:13:35 -07:00
parent 3ba0219430
commit 46d0052d4c

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;
}