It's a bug. It always happens when you accept a friend request of someone who is currently offline