Error thrown

Attempt to modify property "data" on null