Open
Description
While trying to get a property alias within Examines TransformingIndexValues
event using Project.GetModelPropertyType(p => p.Products).Alias
, I get an ArgumentNullException
.
Looking at the source, this method requires an UmbracoContext
that's not available while this event is fired. The fixme inject!
comment probably says enough:
It should probably inject an IUmbracoContextAccessor
somewhere and ensure the context exists, allow passing in a custom IPublishedSnapshot
or at least return null
instead of throwing this exception.