Error thrown

Attempt to assign property "title" on null