I am getting below error while trying to execute the code

Err: Null is not an object (evaluating 'obj.tagName')

Can anyone suggest me the reason for the error