Localstruct isn't read in component
After changing a component and publishing it, the localstruct property returns null when you try to read it. For example:
this.localstruct = this.page.getAtom(this.qualident);
Delete the componentHierarchy page under the template page.
This issue can occur when The template CSD isn't updated with the recent changes.