Exception on $core_v2_user.Current

I am getting this error in 12.1.3 when trying to access the current users data in an ajax call:

EXCEPTION 4: Invocation of method 'ToJson' in  Telligent.Evolution.VelocityExtensions.CoreUtilityScriptedContentFragment threw exception System.NullReferenceException : Object reference not set to an instance of an object.

EXCEPTION 3: Exception has been thrown by the target of an invocation.

EXCEPTION 2: Error getting value from 'Language' on 'Telligent.Evolution.Extensibility.Api.Entities.Version1.User'.

ORIGINAL EXCEPTION: Object reference not set to an instance of an object.

   at Telligent.Evolution.Extensibility.Api.Entities.Version1.User.get_Language()
   at GetLanguage(Object )
   at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)


Parents Reply Children
  • For clarity, 

    • Current represents the contextual user for the current request. For example, the user whose profile is being viewed or the author of the current blog post.
    • Accessing always represents the user who is viewing/accessing/executing the request. 

    Likely, in this case, Current was returning the not-found user and had errors in its errors collection. Accessing some properties on a non-found/error-state entity can sometimes cause additional errors.