I have created a Leblender editor in the past for a client to place responsive images. The code used to work, but in version 7.6.6 I am getting an error "Object reference not set to an instance of an object." I don't understand why I am getting this error. Any guidance would be greatful.
var header = Model.Items.ElementAt(0);
var image = String.IsNullOrEmpty(header.GetValue<string>("Image")) ? "#" : Umbraco.TypedMedia(header.GetValue<string>("Image")).Url;
var link = Umbraco.Content( @Model.Items.ElementAt(0).GetValue("link") );
Did you overwrite the config files in an upgrade? or is this a new install? check your propertyvalueconverters setting in umbracosettings.config. of refactor code for the converters.
Leblender issues
I have created a Leblender editor in the past for a client to place responsive images. The code used to work, but in version 7.6.6 I am getting an error "Object reference not set to an instance of an object." I don't understand why I am getting this error. Any guidance would be greatful.
@{ Layout = "";
}
@if ( @link.Url == "" ) { }
else { }
Did you overwrite the config files in an upgrade? or is this a new install? check your propertyvalueconverters setting in umbracosettings.config. of refactor code for the converters.
This is a new install with all of the new media pickers.
then you will have to refactor the code for the new property converters,
Yes, I get that, but there is no working documentation. The example in the current documentation for Leblender plugin does not work.
is working on a reply...