access violation in AdvRichEditorBase.pas Line 12485

I Get an access violation at AdvRichEditorBase.pas Line 12485.
Your Function:

function TAdvRichEditorBase.XYToElement(X,Y: integer; var el: TREElement): boolean;
var
i: integer;
tel: TREElement;
flg: boolean;
SP: TPoint;
xy: TPoint;

begin
el := nil;
i := 0;
flg := false;

SP := TopLeft;

while i < FContext.Content.Count do
begin
tel := FContext.Content.Items[i];
xy := tel.XY;
xy := Point(xy.X - SP.X, xy.Y);
if (X < XY.X) and (Y > XY.Y) and (Y < XY.Y + tel.LH) and (i > 0) then
begin
el := FContext.Content.Items[i - 1];
break;
end;
if XY.Y > 0 then
flg := true;
if (Y < XY.Y) and (i > 0) then
begin
el := FContext.Content.Items[i - 1];
if (FContext.Content.Items[i] is TBulletElement) and (el is TLineBreakElement) and (i > 1) then
el := FContext.Content.Items[i - 2];
break;
end;
if flg and (XY.Y = 0) {and not (tel is TLineBreakElement)} then
begin
el := FContext.Content.Items[i - 1];
break;
end;
inc(i);
end;

if (i = FContext.Content.Count) and (FContext.Content.Count > 0) then
begin
el := FContext.Content.Items[i - 1];
end;

if (el is TBulletEnd) then <<<<<<<< access violation
el := PreviousElement(el);

Result := Assigned(el);
end;

I think if FContext.Content.Count=0 then will el at this Line NIL.
It must change to:

if (el <> nil) and (el is TBulletEnd) then
el := PreviousElement(el);

Thanks for reporting.
We've fixed this. The next update will address this.