My game has been working perfectly for more than an hour and then all of a sudden I got a null pointer exception. Here is my code, can someone take a look at it?
public void location()
{
setLocation(Greenfoot.getMouseInfo().getX(), Greenfoot.getMouseInfo().getY()-25);
}

