Преглед изворни кода

* don't crash on inclusion of fpmake.pp

git-svn-id: trunk@24273 -
marco пре 12 година
родитељ
комит
b27e03346b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      utils/fpdoc/dglobals.pp

+ 1 - 1
utils/fpdoc/dglobals.pp

@@ -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]);