CodeTools: Fix SIGSEGV introduced in r54438 #b823ce3277, part 2. Issue #31561.

git-svn-id: trunk@54447 -
This commit is contained in:
juha 2017-03-18 18:13:10 +00:00
parent 1ca4c2796a
commit 54f80e0923

View File

@ -4000,7 +4000,9 @@ var
UnitSet:=CodeToolBoss.GetUnitSetForDirectory('');
if UnitSet<>nil then begin
CfgCache:=UnitSet.GetConfigCache(false);
if Assigned(CfgCache) and CfgCache.Includes.GetString(AFilename,ExpFilename) then begin
if Assigned(CfgCache) and Assigned(CfgCache.Includes)
and CfgCache.Includes.GetString(AFilename,ExpFilename) then
begin
NewCode:=LoadSourceCaseLoUp(ExpFilename);
Result:=(NewCode<>nil);
if Result then exit;