Error thrown

Attempt to assign property "dt" on null