Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Jan 08, 2021
Feb 10, 2021
CMS Core
Closed, Fixed and tested
Steps to reproduce:
[Display(
GroupName = SystemTabNames.Content,
Order = 320)]
[MaxLength(10)]
public virtual string MyString { get; set; }
var contentRepository = ServiceLocator.Current.GetInstance <IContentRepository>(); var content = contentRepository.Get<NewsPage>(new ContentReference(113)); // assume that the newly created page has ID 113 var c = content.CreateWritableClone(); c.Property["EditBlock1"].Clear(); contentRepository.Save(c);
Expected result:
Content is updated successfully.
Actual result:
Exception `Object reference not set to an instance of an object` is thrown.