浏览代码

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