From 12b6cd0233173323ba0a8dbbc3e1197b92336124 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 18 May 2021 11:41:31 +0100 Subject: cid#1484905 Dereference before null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia69cb70cda1ba5bc56bec7d480db1f89b7b9200d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115734 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/gdi/gdimtf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/gdi/gdimtf.cxx') diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index fd7e13bc30df..0aea5f0513bd 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -392,7 +392,7 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S Size rDestSize( pOut->LogicToPixel( rLogicDestSize ) ); - const vcl::Window* win = pOut ? pOut->GetOwnerWindow() : nullptr; + const vcl::Window* win = pOut->GetOwnerWindow(); if (!win) win = Application::GetActiveTopWindow(); -- cgit