Fixed NPE coming from getUserInfo method.