We are running 9.4.8 of Dw. When a new order discount is created, a yellow screen of death results when either the order field value is entered or an assigned voucher code is entered. The discount has to be disabled for the site to work again for the affected user. I looked through the bug fixes for newer version of 9.4 but did not see where this behavior has already been reported.
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Dynamicweb.Ecommerce.Orders.Discounts.DiscountProvider.CreateOrderLine(Discount discount, Order order, OrderLine parentOrderLine) +1157
Dynamicweb.Ecommerce.Orders.Discounts.DiscountProvider.GetDiscountOrderLine(Order order, Discount orderDiscount, OrderLine orderline) +1022
Dynamicweb.Ecommerce.Orders.Discounts.DiscountProvider.ProcessExclusiveDiscounts(Order order) +423
Dynamicweb.Ecommerce.Orders.OrderService.CalculateDiscounts(Order order) +3894
Dynamicweb.Ecommerce.Cart.Frontend.HandleDiscountAndTaxes(Order cart, Boolean fromBackend) +56
Dynamicweb.Ecommerce.Frontend.Cart.CartPageTemplateExtender.ExtendTemplate(Template template) +79
Dynamicweb.Frontend.Renderer.RenderPageTemplateExtenders(Template Template) +793
Dynamicweb.Frontend.Renderer.RenderPage(Template template, PageViewModel pageViewModel) +6243
Dynamicweb.Frontend.PageView.SetPageTemplateValues() +793
Dynamicweb.Frontend.PageView.Output() +926
Dynamicweb.Frontend.DynamicwebHttpHandler.ProcessRequest(HttpContext context) +220
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +497
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87