diff --git a/Source/Producer/PythonTools.Producer.AbstractForm.pas b/Source/Producer/PythonTools.Producer.AbstractForm.pas index 20efa28..974fb78 100644 --- a/Source/Producer/PythonTools.Producer.AbstractForm.pas +++ b/Source/Producer/PythonTools.Producer.AbstractForm.pas @@ -122,6 +122,8 @@ procedure TAbstractFormProducer.GeneratePyFormFile(const AStream: TStream; begin LProps := String.Empty; for LComp in AFormModel.ExportedComponents do begin + if LComp.ComponentName.IsEmpty() then + Continue; if not LProps.IsEmpty() then LProps := LProps + sLineBreak