As Salman indicate that you are trying to perform action on null value. I mean either you are trying to access values or set values to null object. Here there are two thing need to be check,
First your parater attribute and second one is dbAttribute. Please try to put debugger and check which values you are getting and put null check for that area.
Object reference not set to an instance of an object error will arise when any value is null. As per your screenshot dbAttribute value is null.when you are using Find method and from there it is not able to find and it is returning null value.in the next statement you are assigning value to dbAttribute and as it is null so it will throw exception. Check breakpoint and try to find out why it is returning null. To handle the error what you can do is, if(dbAttribute != null) then execute that statement. Thanks.
Jignesh KumarPosted Apr 11, 2020, 1:36 AM
Salman BegPosted Apr 11, 2020, 1:21 AM