Currently, I am creating a maze game and I am at the final steps. The fly moves around the maze eating flowers being careful not to be eaten by the spiders. If the fly is eaten before eating a single flower the score of 0 is passed through to the game over screen. However, when the fly eats a flower, the flower is removed and when I try to pass the value of the actor to the counter the game crashes with the error code java.lang.nullpointerexception
Will post code if anyone asks to see

