diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonAnimationInspector.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonAnimationInspector.cs index 75f3e2966..c33232442 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonAnimationInspector.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonAnimationInspector.cs @@ -90,7 +90,7 @@ namespace Spine.Unity.Editor { protected void TrySetAnimation (SkeletonAnimation skeletonAnimation) { if (skeletonAnimation == null) return; - if (!skeletonAnimation.valid) + if (!skeletonAnimation.valid || skeletonAnimation.AnimationState == null) return; TrackEntry current = skeletonAnimation.AnimationState.GetCurrent(0);