Post the line throwing the error. You did something wrong, but I can't guess what exactly.