You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open GetOrderDetailsHandler.cs and put a breakpoint on line 22 inside of "Handle" method (should be: "var customerOrders = await _orderRepository.ListAsync(new CustomerOrdersWithItemsSpecification(request.UserName));")
run the app in debug (F5)
Reach the code in step Update links in README.md with ported wiki content #2 to trigger breakpoint however you like or use the app navigation by using web app to: add an item to basket, checkout, login using demouser (listed in the page with username/password), click login, click pay now, click on username on top and go to order history then click detail
once you hit the breakpoint change line 23 (example below)
//var order = customerOrders.FirstOrDefault(o => o.Id == request.OrderId);varorder=customerOrders.First(o =>o.Id==request.OrderId);
hit F5
Expected Behavior:
App should resume running as the change is valid
Actual Behavior:
web app crashes with object reference not set to an instance of an object exception
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Web
StackTrace:
at Microsoft.eShopWeb.Web.Features.OrderDetails.GetOrderDetailsHandler.d__2.MoveNext() in C:\Source\eShopOnWeb\src\Web\Features\OrderDetails\GetOrderDetailsHandler.cs:line 22
The text was updated successfully, but these errors were encountered:
Version Used:
16.9.0 Preview 1.0 [30528.6.main]
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Web
StackTrace:
at Microsoft.eShopWeb.Web.Features.OrderDetails.GetOrderDetailsHandler.d__2.MoveNext() in C:\Source\eShopOnWeb\src\Web\Features\OrderDetails\GetOrderDetailsHandler.cs:line 22
The text was updated successfully, but these errors were encountered: