mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 07:16:16 +02:00
CodeTools: Fix SIGSEGV introduced in r54438 #b823ce3277, part 2. Issue #31561.
git-svn-id: trunk@54447 -
This commit is contained in:
parent
1ca4c2796a
commit
54f80e0923
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user