Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
We are doing the following on version 8.8.0 site and it is working.
public static IEnumerable FindAll()
{
var store = typeof(T).GetStore();
return store.Items();
}
However, when we attempt the below on version 9.12.0, I am getting a NullReference exception when I call items.ToList(). The strange thing is if I do items.Count(), it actually returns the 3 items saved in the store.
public static IEnumerable GetItems()
{
var store = typeof(CalHIINCommitmentAgreement).GetStore();
var items = store.Items();
if (items != null)
return items.ToList();
return new List();
}