Added a catch of the NullPointerException in addFriend method (hopefully working)