i meet a wheird question about navmesh agent

hello guys there is my problem

175928-q.png

I find that once i install this navmesh agent in Agent then hit play the whole unity will stuck at this situation .it total can’t move on
175929-q2.png

this is my script
/*
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class patrol : MonoBehaviour
{
public NavMeshAgent agent;
public int i;
public Transform PatrolPoint;
public bool Test;
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
    
    for(i=0;i<PatrolPoint.Length;){
        agent.SetDestination(PatrolPoint[0].transform.position);
        if(transform.position.x==PatrolPoint_.transform.position.x&&transform.position.z==PatrolPoint*.transform.position.z){*_

Test=true;
i++;
}
}
}
}

ok sloved though no one answer me
the question is for loop