Converter: Fix a crash when converting a single unit. Issue #32785

git-svn-id: branches/fixes_1_8@56736 -
This commit is contained in:
mattias 2017-12-14 18:10:21 +00:00
parent e4cfa6f5fd
commit 109749a2ef

View File

@ -464,7 +464,8 @@ var
i, x: Integer;
begin
for i:=fMissingUnits.Count-1 downto 0 do begin
if ACommentedUnits.Find(fMissingUnits[i], x) then begin
if Assigned(ACommentedUnits) and ACommentedUnits.Find(fMissingUnits[i], x) then
begin
fUnitsToComment.Add(fMissingUnits[i]);
fMissingUnits.Delete(i);
end;