I am facing "Object reference not set to an instance of an object" error with component preview in component opened state. It is rendering the preview correctly with same component and component template in component closed state as well as in Template Builder.
I tried to remove all the TBBs from the component template, render the component with default component template but in all the cases it is throwing the same error in component opened state.
I checked this for other schema which have the same definition and it is working as expected in all the above mentioned cases.
So, please suggest any solution to identify and resolve this issue.