Hello
I got a problem with Greenfoot: in line 3 of my code there is the error from the title and I don't know how to fix it... it says that the error is the "null"!
thanks for the help
private void explodeOthers() { List<Actor> actors = (List<Actor>) getIntersectingObjects(null); for (Actor a : actors) { if( ! (a instanceof Explosion)) { getWorld().addObject(new Explosion(), a.getX(), a.getY()); getWorld().removeObject(a); } } }