mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 01:00:00 +02:00
* Do not crash when module pointer is nil
(cherry picked from commit e6f71b6acc
)
This commit is contained in:
parent
ab3916b0f8
commit
5adde504a9
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user