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
1 2 3 4 5 6 7 8 9 10 11 12 | 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); } } } |