Hello Madhan,
I am following up to see if you still need assistance with this issue.
Please let me know if you have any other questions.
Madhan,
What is the call stack for the NullRefrerenceException? Do you reproduce this in a simpler sample as well or only your application?
Let me know if you have any questions.