This means the variable that you are using is null…please check if a value is provided to the datatable and any other variables that you are using
Please close with solution…And for further questions if its different then please raise a different topic so that it would segregate the issue
cheers