Animator is not playing an AnimatorController

I’m confused, getting “Animator is not playing an AnimatorController” error and animation is stuck on one direction.

void FixedUpdate()
{

    if (Input.GetAxis("HorizontalFire") > 0 || Input.GetAxis("HorizontalFire") < 0)
    {
        if(shooting==false)
        {
            shooting = true;
            
            
            fireball = Instantiate(bullet, SpawnPoint.position, SpawnPoint.rotation);
            
            animator = fireball.gameObject.GetComponent<Animator>();
            StartCoroutine(setShootingfalse());
        }

        animator = bullet.gameObject.GetComponent<Animator>();
        if (animator.gameObject.activeSelf)
        {
            
            animator.SetFloat("Horizontal", bullet.transform.position.x);
            animator.SetFloat("Vertical", bullet.transform.position.y);
            print("Hello!");
        }
        
    }

}

solved my issue