1
Vote

Yellow Screen of death in case of Content type with Autoroute part, but without TitlePart

description

AdvancedMenuItemPartDriver.Editor

Text = string.Format("{1}:\t{0}", x.As<TitlePart>().Title, x.ContentItem.TypeDefinition.DisplayName

Will fail in case of Content type with Autoroute part, but without TitlePart.
I think there is Driver.GetContentItemMetadata should used, or code like
Text = string.Format("{1}:\t{0}", (x.As<TitlePart>() != null) ? x.As<TitlePart>().Title : x.As<AutoroutePart>().Path, x.ContentItem.TypeDefinition.DisplayName),

comments