diff --git a/docs/html/build_lcl_docs.lpi b/docs/html/build_lcl_docs.lpi
index 4673eb69b4..f301737b0b 100644
--- a/docs/html/build_lcl_docs.lpi
+++ b/docs/html/build_lcl_docs.lpi
@@ -1,7 +1,7 @@
-
+
@@ -16,19 +16,15 @@
+
+
+
+
-
-
-
-
-
-
-
-
diff --git a/ide/lazarus.res b/ide/lazarus.res
index e07b2e57b0..f938fb51df 100644
Binary files a/ide/lazarus.res and b/ide/lazarus.res differ
diff --git a/ide/project.pp b/ide/project.pp
index 831be6cbaf..2390371711 100644
--- a/ide/project.pp
+++ b/ide/project.pp
@@ -4642,9 +4642,8 @@ var
PkgDependency: TPkgDependency;
begin
PkgDependency:=FindDependencyByNameInList(FirstRequiredDependency,pdlRequires,PackageName);
- Result := Assigned(PkgDependency);
- if Result then
- RemoveRequiredDependency(PkgDependency);
+ if PkgDependency=nil then exit(false);
+ RemoveRequiredDependency(PkgDependency);
end;
procedure TProject.LockUnitComponentDependencies;