Commit 27805e56 authored by Juha Manninen's avatar Juha Manninen
Browse files

LazBuild: Prevent a crash in LazBuild. Project.UnitResourceFileformat=Nil. Issue #37984.

git-svn-id: trunk@64074 -
parent 419384ae
......@@ -2161,9 +2161,10 @@ procedure TUnitInfo.SetTimeStamps;
var
ResFilename: String;
begin
fSourceChangeStep:=FSource.ChangeStep; // Indicates any change is source
fSourceChangeStep:=FSource.ChangeStep; // Indicates any change is source
// Associated LFM resource file timestamp
//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);
if FileExistsCached(ResFilename) then
fComponentLFMLoadDate:=FileAgeCached(ResFilename);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment