2014-04-01 77 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。