AI OnAI Off
You would need to initiate Authors, for example by SetDefaultValues
public override void SetDefaultValues(ContentType contentType)
{
base.SetDefaultValues(contentType);
Authors = new List<ContentReference>();
}
Hello all,
I'm getting an error when I try to add a new page into a ContentReference.
The page type (Article) has the following attribute:
I'm able to create a new article page, but when I try to add a page into the Authors ContentReference block with the following code:
I get an exception "System.NullReferenceException: Object reference not set to an instance of an object."
I can see that the variable page is correctly created so the page.ContentLink exist, so don't know why I'm getting this error.
Thanks in advance.