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

New commits:
commit bcdd61ad20635e8806993aca311a91c3cfdad6c3
Author:     Andras Timar <[email protected]>
AuthorDate: Mon Nov 3 19:09:04 2025 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Tue Nov 4 13:38:49 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]>

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