A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Try asking this in the EPiServer Commerce forum.
Also it appears you're working with the CTP17 version which should be discussed in the TAP forums instead of the open forums.
Hi whenever i am trying to add cart . I am getting following error.
Error:
Object reference not set to an instance of an object.
public Entry Entry { get; set; }
public Func<Entry, bool> FilterAction { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
// getcart();
}
protected void btnBuy_Click(object sender, EventArgs e)
{
CartHelper test = new CartHelper(Cart.DefaultName);
if (Entry != null)
{
Entry entry = Entry;
if (FilterAction != null)
{
entry = Entry.Entries.Entry.FirstOrDefault(FilterAction);
test.AddEntry(entry);
}
}
}
Stack Trace: