First thanks for answering
I already mentioned this is not a real code which could contain typo, so there’s no need to focus in the syntax. this is just to illustrate where the issue I have is located
anyway Syntax error leads to compiler error which is not the case here
the issue is that the IDetailLayoutBuilder object contain CurrentCustomizationClass and when it’s passed in the delegate, this object is destroyed and it becomes null and it no longer contain CurrentCustomizationClass which leads to nullptr