So I am trying to make my actor run through a maze until all of the flowers have been collected. I turned the number of flowers already in the world into an integer using this line of code.
int f = getWorld().getObjects(Flower.class).size();
But whenever I try and add my actor to the world by right-clicking it, java gives me a NullPointerException error at the code above. Any help is appreciated, thank you!
