Pārlūkot izejas kodu

* don't crash on inclusion of fpmake.pp

git-svn-id: trunk@24273 -
marco 12 gadi atpakaļ
vecāks
revīzija
b27e03346b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      utils/fpdoc/dglobals.pp

+ 1 - 1
utils/fpdoc/dglobals.pp

@@ -1171,7 +1171,7 @@ var
   Module: TPasElement;
   Module: TPasElement;
 begin
 begin
   Result := FindInModule(CurModule, AName);
   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
     for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
     begin
     begin
       Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);
       Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);