mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 16:27:58 +02:00
* Do not crash when module pointer is nil
This commit is contained in:
parent
a8ee66823a
commit
e6f71b6acc
@ -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
|
||||
begin
|
||||
srsym:=tsym(pmod.globalsymtable.Find(s));
|
||||
|
Loading…
Reference in New Issue
Block a user