Error thrown

Attempt to assign property "prefix" on null