1 2 3 | java.lang.NullPointerException at Boat.Exit(Boat.java: 100 ) at Boat.act(Boat.java: 27 ) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public void Exit(Exit out) { World world; world = getWorld(); if (!world.getObjects(Boat. class ).isEmpty()) { if (intersects(out)){ scoreUp(); world.removeObject( this ); } else if (isTouching(Exit. class )) { world.removeObject( this ); } } } |