diff --git a/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs b/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs index 10f7c504f..f95a3b422 100644 --- a/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs +++ b/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs @@ -137,7 +137,7 @@ namespace UniGLTF { getBoneTransform = humanoid.GetBoneTransform; } - else if (ExportRoot.GetComponent() is Animator animator) + else if (ExportRoot.GetComponent() is Animator animator && animator != null) { getBoneTransform = animator.GetBoneTransform;