vcl/source/window/paint.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 4c63a86c88d54db5e69dc8502b6eeffa7f1e4417
Author: Andras Timar <[email protected]>
AuthorDate: Mon Nov 3 19:09:04 2025 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Mon Nov 3 21:18:28 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]>
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 60025b44da2d..d4ba048bf49d 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1251,6 +1251,8 @@ void Window::Validate()
bool Window::HasPaintEvent() const
{
+ if (!mpWindowImpl)
+ return false;
if ( !mpWindowImpl->mbReallyVisible )
return false;