fix: occasional NRE from RO analysis

This commit is contained in:
bd_ 2025-01-27 21:31:41 -08:00
parent f799af4c03
commit 10f74ec1d6

View File

@ -137,7 +137,7 @@ namespace nadena.dev.modular_avatar.core.editor
var mami_condition = ParameterAssignerPass.AssignMenuItemParameter(mami, _simulationInitialStates);
if (mami_condition != null &&
if (mami_condition != null && ForceMenuItems != null &&
ForceMenuItems.TryGetValue(mami_condition.Parameter, out var forcedMenuItem))
{
var enable = forcedMenuItem == mami;