Attempt to read property "regulation" on null