* Do not crash when module pointer is nil

(cherry picked from commit e6f71b6acc)
This commit is contained in:
Michael VAN CANNEYT 2023-03-06 18:45:27 +01:00 committed by Michaël Van Canneyt
parent ab3916b0f8
commit 5adde504a9

View File

@ -3617,8 +3617,9 @@ implementation
var
pmod : tmodule;
begin
pmod:=tmodule(pm);
result:=false;
if not assigned(pm) then exit;
pmod:=tmodule(pm);
if assigned(pmod.globalsymtable) then
begin
srsym:=tsym(pmod.globalsymtable.Find(s));