Commit e93ea1ce authored by Juha Manninen's avatar Juha Manninen
Browse files

Converter: Fix a crash when converting a single unit. Issue #32785, patch from Timl.

git-svn-id: trunk@56660 -
parent a3649ec4
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment