Could you post the piece of code on which you are getting the error?