diff --git a/components/turbopower_ipro/iphtmlblocklayout.pas b/components/turbopower_ipro/iphtmlblocklayout.pas index e4352a58fb..077ebff649 100644 --- a/components/turbopower_ipro/iphtmlblocklayout.pas +++ b/components/turbopower_ipro/iphtmlblocklayout.pas @@ -450,7 +450,8 @@ begin { mirroring for RTL reading } isRTL := (FOwner.Dir = hdRTL); - if (CurElem.Owner.ParentNode <> nil) and (CurElem.Owner.ParentNode is TIpHTMLNodeCORE) then + if (CurElem.Owner <> nil) and (CurElem.Owner.ParentNode <> nil) and + (CurElem.Owner.ParentNode is TIpHTMLNodeCORE) then begin rtlNode := TIpHtmlNodeCORE(CurElem.Owner.ParentNode); if isRTL and (rtlNode.Dir = hdLTR) then