Explorar o código

* don't crash on inclusion of fpmake.pp

git-svn-id: trunk@24273 -
marco %!s(int64=12) %!d(string=hai) anos
pai
achega
b27e03346b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]);