Nullpoint reference issue in C#

Lost for a quite long time on this. It says null point reference at flags assignment.
Can somebody please tell me if there is anything wrong I’m doing here ?
I collect flags from player movement scripts and when all 'flag’s returns TRUE, I declare level loading.
```
*void Update ()
{
for(int i=0; i< Players.Length; i++)
{
flags[i] = Players[i].GetComponent().flag;
Debug.Log (“Player: “+Players[i].name+”:::::”+ flags[i]);

			if(flags[i] == false)
				{
				AllTrue = false;
					break;
				}
			
		}
}*

```

Players doesn’t have a PlayerMovement script attached to it. Or Players is, itself, null.

All the Players do contain script attached. So, is the concern.

Check all parts of the line systematically, one at a time. Is flags null? Is Players null? Is Players null? Is the result of GetComponent null?