Whatever the problem, please report the error in full including both the line/column, don’t just pick out the bits you consider important. It would be handy to tell other devs which line it’s on yes?
Also, please post code using code-tags , don’t take pictures of code as we just cannot reply with the line in question in our posts.
Regardless. the above reply is the correct one.