Advertisement
Guest User

why?

a guest
Apr 18th, 2020
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1.     public String play() {
  2.         System.err.println(neighbours.get(position));
  3.         for (Point p : neighbours.get(position)) { // position is not null
  4.             if (!visited.contains(p)) {
  5.                 System.err.println(p); //p is not null
  6.                 return moveTo(map.pointToDirection(position,p)); // nullpointerexception, can't call the function pointToDirection
  7.             }
  8.         }
  9.         return surface();
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement