uniqueId returns null in LoginEvent

if use getUniqueId in LoginEvent returns: null