Error thrown

Attempt to modify property "style" on null