I will try to come back on your issue later but would you please verify that the values of the user are null.
Simply try to print the username and let me know if this work:
Linvi
Simply try to print the username and let me know if this work:
var user = User.GetLoggedUser();
Console.WriteLine(user.Name);