vcl/source/window/paint.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e5eb1f972f28db0582e11a31387fff05f85d5ba4
Author:     Andras Timar <[email protected]>
AuthorDate: Mon Nov 3 19:09:04 2025 +0100
Commit:     Christian Lohmaier <[email protected]>
CommitDate: Wed Nov 5 12:19:14 2025 +0100

    vcl: check mpWindowImpl for nullptr
    
    Change-Id: Ib70e14cd791415f47772b1053200e9bab6925e8d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193372
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    (cherry picked from commit 4c63a86c88d54db5e69dc8502b6eeffa7f1e4417)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193393
    Reviewed-by: Andras Timar <[email protected]>
    Tested-by: Jenkins
    (cherry picked from commit 5946f67e1db31926af92ea3d0d8eeb58978ea782)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193399
    Reviewed-by: Xisco Fauli <[email protected]>
    (cherry picked from commit bcdd61ad20635e8806993aca311a91c3cfdad6c3)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193415
    Reviewed-by: Christian Lohmaier <[email protected]>
    Tested-by: Christian Lohmaier <[email protected]>

diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index d635d25c4edc..d6bb97379f44 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1245,6 +1245,8 @@ void Window::Validate()
 
 bool Window::HasPaintEvent() const
 {
+    if (!mpWindowImpl)
+        return false;
 
     if ( !mpWindowImpl->mbReallyVisible )
         return false;

Reply via email to