mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-08 19:47:57 +02:00
* Fix access violation
This commit is contained in:
parent
0e24cef774
commit
0d9412ffbe
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user