mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +08:00
fix: NPE in menu installer editor
This commit is contained in:
parent
569275dcba
commit
435ce7b248
@ -282,9 +282,13 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
if (result != ValidateExpressionMenuIconResult.Success) return result;
|
||||
|
||||
// Labels
|
||||
foreach (VRCExpressionsMenu.Control.Label label in control.labels) {
|
||||
ValidateExpressionMenuIconResult labelResult = Util.ValidateExpressionMenuIcon(label.icon);
|
||||
if (labelResult != ValidateExpressionMenuIconResult.Success) return labelResult;
|
||||
if (control.labels != null)
|
||||
{
|
||||
foreach (VRCExpressionsMenu.Control.Label label in control.labels)
|
||||
{
|
||||
ValidateExpressionMenuIconResult labelResult = Util.ValidateExpressionMenuIcon(label.icon);
|
||||
if (labelResult != ValidateExpressionMenuIconResult.Success) return labelResult;
|
||||
}
|
||||
}
|
||||
|
||||
// SubMenu
|
||||
|
Loading…
Reference in New Issue
Block a user