Hi,
Please provide the full class code, it is impossible to tell what went wrong just by looking at two lines...