Question: Please tell me.
I am using ESAPI for validation, escaping n all that and i have this confusion.
Please share your experience.

Answer: 
I was using `R.id.context_menu_header` instead of a `R.layout.layout_file` and I had to pass null for the last parameter of the View.inflate method.
My first though is an error in one of your XML-files. Some ID that is not defined correctly or something. It would be helpful if you would post some more code including the XML-file :)