fixed null pointer exception when no friends are found