From acf309d7e45aeae87d8dee0dd2af3c9a86b9f652 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 18 May 2021 13:01:11 +0100 Subject: cid#1484904 Dereference after null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4680b1d45eb9770b1891fa23e88be0d18ba47658 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115741 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/edit/texteng.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source') diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 5c6926d09129..41885eecc4d5 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -1879,7 +1879,7 @@ void TextEngine::ImpPaint( OutputDevice* pOutDev, const Point& rStartPos, tools: if ( !IsFormatted() ) FormatDoc(); - vcl::Window* const pOutWin = pOutDev ? pOutDev->GetOwnerWindow() : nullptr; + vcl::Window* const pOutWin = pOutDev->GetOwnerWindow(); const bool bTransparent = (pOutWin && pOutWin->IsPaintTransparent()); tools::Long nY = rStartPos.Y(); -- cgit