I have a little problem, I have an object flying around my hero and when my hero has 0 life left it is removed. The flying object should also be removed (I have a condition if (lifeLeft == 0) getWorld()removeObject(this);
that was working until today. Now I have a null pointer exception in my flying object class but with only one more act the program runs again. Is this problem occurring because the methods aren't called in the right order?