Null reference exception on my animator in network

When I run this script

void OnTriggerEnter (Collider other)
{

print(“should TZ now”);
foreach(AnimationClip ac in myAnimator.runtimeAnimatorController.animationClips)
{
print(ac.name);
}

}

I get this on the console:

and the foreach line gets the null reference exception.

There are no problems in single player mode, this only occurs on the network. Can anyone explain this to me? Thanks in advance for your patience.

I guess I’ll just put in a test for myAnimator != null (and that works) but doesn’t explain the error… Oh well.

Those printed statements are coming from the foreach loop, so it’s not “myAnimator” that is null. It is one of the elements in the “animationClips” list that is null. You should check for “ac” being null before accessing the name, or figure out why its null.

Whatever comes after “Kote Block” is null in the list.