asp.net - List.Find throwing Nullable object must have a value error -


dim sipff systeminfopropertiesforform = listsysteminfopropertiesforform.find(function(f) f.showfieldpropertytypeid = cint(systeminfopropertyids.showmilestone)) 

systeminfopropertiesforform complex type items nullable.

cint(systeminfopropertyids.showmilestone) = 900

listsysteminfopropertiesforform has 10 items

any idea ?

fixed using below code

dim sipff systeminfopropertiesforform = listsysteminfopropertiesforform.find(function(f) f.showfieldpropertytypeid.hasvalue andalso f.showfieldpropertytypeid.value = cint(systeminfopropertyids.showmilestone)) 

Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -