IDE: fixed crash on load lfm error

git-svn-id: trunk@64765 -
This commit is contained in:
mattias 2021-03-07 16:13:02 +00:00
parent 2c9ec4c1ed
commit 4fda9bfdb6

View File

@ -6155,7 +6155,8 @@ begin
end; end;
{$ENDIF} {$ENDIF}
AnUnitInfo.ResourceBaseClass:=GetComponentBaseClass(NewComponent.ClassType); if NewComponent<>nil then
AnUnitInfo.ResourceBaseClass:=GetComponentBaseClass(NewComponent.ClassType);
Project1.InvalidateUnitComponentDesignerDependencies; Project1.InvalidateUnitComponentDesignerDependencies;
AnUnitInfo.Component:=NewComponent; AnUnitInfo.Component:=NewComponent;