Fix NPE getting user