That is the error I am getting when I run my code, I am programming in gridworld. The part of the code where I am getting the error is when i do:
grid.get(mateLoc.get(0)).getColor()
mateLoc is an ArrayList that stores the location of an actor
grid is a variable made of Grid that store getGrid()
I am trying to get the color of the actor in mateLoc.
Please Help

