* don't crash on inclusion of fpmake.pp

git-svn-id: trunk@24273 -
This commit is contained in:
marco 2013-04-19 23:50:43 +00:00
parent f3ef5a1f9c
commit b27e03346b

View File

@ -1171,7 +1171,7 @@ var
Module: TPasElement;
begin
Result := FindInModule(CurModule, AName);
if not Assigned(Result) then
if not Assigned(Result) and assigned (CurModule.InterfaceSection) then
for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
begin
Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);