mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 09:09:50 +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
|
var
|
||||||
pmod : tmodule;
|
pmod : tmodule;
|
||||||
begin
|
begin
|
||||||
pmod:=tmodule(pm);
|
|
||||||
result:=false;
|
result:=false;
|
||||||
|
if not assigned(pm) then exit;
|
||||||
|
pmod:=tmodule(pm);
|
||||||
if assigned(pmod.globalsymtable) then
|
if assigned(pmod.globalsymtable) then
|
||||||
begin
|
begin
|
||||||
srsym:=tsym(pmod.globalsymtable.Find(s));
|
srsym:=tsym(pmod.globalsymtable.Find(s));
|
||||||
|
Loading…
Reference in New Issue
Block a user