lilxyzw / lilycalInventory

Modify avatar at build time.
MIT License
45 stars 10 forks source link

オブジェクトが空の場合にNullReferenceException #137

Open nomlasvrc opened 1 month ago

nomlasvrc commented 1 month ago

全く原因が分からなかったのでスタックトレースだけ貼ります

System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.GameObject.get_activeSelf(UnityEngine.GameObject)
  at jp.lilxyzw.lilycalinventory.Processor+Modifier.ResolveMultiConditions (UnityEditor.Animations.AnimatorController controller, System.Boolean hasWriteDefaultsState, jp.lilxyzw.lilycalinventory.runtime.ItemToggler[] togglers, jp.lilxyzw.lilycalinventory.runtime.CostumeChanger[] costumeChangers, UnityEditor.Animations.BlendTree root) [0x00352] in .\Packages\jp.lilxyzw.lilycalinventory\Editor\Processor\Modifier.ResolveMultiConditions.cs:64 
  at jp.lilxyzw.lilycalinventory.Processor.ModifyPreProcess (nadena.dev.ndmf.BuildContext context) [0x000b5] in .\Packages\jp.lilxyzw.lilycalinventory\Editor\Processor\Processor.cs:216 
  at jp.lilxyzw.lilycalinventory.LilycalInventoryPlugin+<>c.<Configure>b__9_1 (nadena.dev.ndmf.BuildContext ctx) [0x00000] in .\Packages\jp.lilxyzw.lilycalinventory\Editor\NDMF\LilycalInventoryPlugin.cs:30 
  at nadena.dev.ndmf.AnonymousPass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Fluent\Pass.cs:42 
  at nadena.dev.ndmf.ConcretePass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Solver\PluginResolver.cs:39 
  at nadena.dev.ndmf.BuildContext.RunPass (nadena.dev.ndmf.ConcretePass pass) [0x00124] in .\Packages\nadena.dev.ndmf\Editor\API\BuildContext.cs:365 
  at (wrapper managed-to-native) UnityEngine.GameObject.get_activeSelf(UnityEngine.GameObject)
  at jp.lilxyzw.lilycalinventory.Processor+Modifier.ResolveMultiConditions (UnityEditor.Animations.AnimatorController controller, System.Boolean hasWriteDefaultsState, jp.lilxyzw.lilycalinventory.runtime.ItemToggler[] togglers, jp.lilxyzw.lilycalinventory.runtime.CostumeChanger[] costumeChangers, UnityEditor.Animations.BlendTree root) [0x00352] in .\Packages\jp.lilxyzw.lilycalinventory\Editor\Processor\Modifier.ResolveMultiConditions.cs:64 
  at jp.lilxyzw.lilycalinventory.Processor.ModifyPreProcess (nadena.dev.ndmf.BuildContext context) [0x000b5] in .\Packages\jp.lilxyzw.lilycalinventory\Editor\Processor\Processor.cs:216 
  at jp.lilxyzw.lilycalinventory.LilycalInventoryPlugin+<>c.<Configure>b__9_1 (nadena.dev.ndmf.BuildContext ctx) [0x00000] in .\Packages\jp.lilxyzw.lilycalinventory\Editor\NDMF\LilycalInventoryPlugin.cs:30 
  at nadena.dev.ndmf.AnonymousPass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Fluent\Pass.cs:42 
  at nadena.dev.ndmf.ConcretePass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Solver\PluginResolver.cs:39 
  at nadena.dev.ndmf.BuildContext.RunPass (nadena.dev.ndmf.ConcretePass pass) [0x00124] in .\Packages\nadena.dev.ndmf\Editor\API\BuildContext.cs:365 
nomlasvrc commented 1 month ago

原因が分かりました。LI Prop(など?)の「一緒に操作するパラメーター」内の「オブジェクトのオンオフ」のゲームオブジェクトが空の場合に発生するようです。