mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:49:19 +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
|
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