* Fix access violation

This commit is contained in:
Michaël Van Canneyt 2022-06-17 14:11:42 +02:00
parent 0e24cef774
commit 0d9412ffbe

View File

@ -8695,7 +8695,7 @@ begin
if (Result=nil) then begin
PersistentClass := GetClass(AClassName);
if PersistentClass.InheritsFrom(TComponent) then
if Assigned(PersistentClass) and PersistentClass.InheritsFrom(TComponent) then
Result := TComponentClass(PersistentClass);
end;