-fixed the Nullpointer error with friendslist

-fixed the Nullpointer error with friendslist