Please try to search for the error first in the forum so that you can avoid possible duplicates of the same topic many number of times
And, the error is due to you are passing null values to the assign. please check using a message box whether you are getting any values or not?