From f57ec3d47296ac92e3bde8524a9762e5bbcc4a17 Mon Sep 17 00:00:00 2001 From: wp_xyz Date: Sun, 29 May 2022 16:50:28 +0200 Subject: [PATCH] Turbopower_ipro: Add missing nil check to previous commit. --- components/turbopower_ipro/iphtmlblocklayout.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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