2014-04-01 74 views
-3

在调试,我得到我预计将有值,值不能为空错误

enter image description here

然而,当执行proceeds.I得到以下

enter image description here

为什么这么说?

+3

您能否将您的作品展示为文字?由于我现在在工作,我无法看到来自imgur的图像。 –

+5

检查ProductVariants是否为空? –

+0

在第188行放置一个断点并进行调试。 – GoofyBall

回答

0

Thnk您downvotings :)

的productvariant列表

Initialisations被要求。

0

您需要在分配任何值之前初始化productDto.ProductVariants。