mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-23 02:19:09 +02:00
LazBuild: Prevent a crash in LazBuild. Project.UnitResourceFileformat=Nil. Issue #37984.
git-svn-id: trunk@64074 -
This commit is contained in:
parent
419384ae30
commit
27805e56a1
@ -2161,9 +2161,10 @@ procedure TUnitInfo.SetTimeStamps;
|
|||||||
var
|
var
|
||||||
ResFilename: String;
|
ResFilename: String;
|
||||||
begin
|
begin
|
||||||
fSourceChangeStep:=FSource.ChangeStep; // Indicates any change is source
|
fSourceChangeStep:=FSource.ChangeStep; // Indicates any change is source
|
||||||
// Associated LFM resource file timestamp
|
// Associated LFM resource file timestamp
|
||||||
//if Component=nil then exit; <- Component is here always nil for some reason.
|
//if Component=nil then exit; <- Component is here always nil for some reason.
|
||||||
|
if UnitResourceFileformat=nil then exit; // Happens with LazBuild
|
||||||
ResFilename:=UnitResourceFileformat.GetUnitResourceFilename(Filename,true);
|
ResFilename:=UnitResourceFileformat.GetUnitResourceFilename(Filename,true);
|
||||||
if FileExistsCached(ResFilename) then
|
if FileExistsCached(ResFilename) then
|
||||||
fComponentLFMLoadDate:=FileAgeCached(ResFilename);
|
fComponentLFMLoadDate:=FileAgeCached(ResFilename);
|
||||||
|
Loading…
Reference in New Issue
Block a user