vcl/source/edit/texteng.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit acf309d7e45aeae87d8dee0dd2af3c9a86b9f652
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue May 18 13:01:11 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue May 18 16:29:50 2021 +0200

    cid#1484904 Dereference after null check
    
    Change-Id: I4680b1d45eb9770b1891fa23e88be0d18ba47658
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115741
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to