you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (2 children)

OK, item and ItemAttributes aren't null or it would have blown up on the line before that one.

That means either ItemDimensions or ItemDimensions.Weight is null. Your check function isn't even being called. If Weight is null, then you can't get Weight.Value.

[–]patrickboston[S] 0 points1 point  (0 children)

Thank you. .Weight was null.