You want the API to return the currentLocation as a valid value by comparing its surname with the surnames existing, which are nulls.
It fails inside the binarySearch () in attempting to compare a null and a surname.