Have you used the magic tool
Debugger
? Set a break point to this method and review your code line by line.
You are having this exception because you have a null value assigned to one of your variables. I am mostly suspicious at you are getting null value at
DevelopmentStatus("data")
Also it is good to check if you are getting values assigned to
cSheetType
&
cYear
.
Good luck,
OI