@@ -3623,8 +3623,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
srsym:=tsym(pmod.globalsymtable.Find(s));