Null Reference Problems with Foreach

Hi, im a newbie C# programer and I have a problem with Null Reference. These are the lines with the problem.

foreach (var EvilElf in FindObjectsOfType (typeof (Animator)) as Animator[]) {
	if (EvilElf.runtimeAnimatorController.name == "Flyelf2_0") {
		EvilElf.GetComponent <Animator> ().runtimeAnimatorController = EvilFlyelf;
	}
}

I dont know why in other Scene works perfectly, and in a new scenes no.

I try to write different;

foreach (var EvilElf in FindObjectsOfType (typeof (SpriteRenderer)) as SpriteRenderer[]) {
if (EvilElf .sprite.name == "Flyelf2_0" || EvilForm.sprite.name == "Flyelf2_1") {
	EvilElf .GetComponent <Animator> ().runtimeAnimatorController = EvilFlyelf;
	}
}

I search for all sprites in the animation instead the Animator.name and it works, but is not a real solution anyway…