summaryrefslogtreecommitdiff
path: root/vcl/source/window/window2.cxx
diff options
context:
space:
mode:
authorGabriel Masei <gabriel.masei@1and1.ro>2021-06-16 09:41:12 +0300
committerMichael Meeks <michael.meeks@collabora.com>2021-06-16 10:16:50 +0200
commitbf6dabe0ebad3cc5bc0edc04ae74fba0190b6203 (patch)
treed0807dbc845034a2d1b3c4495753b8f2fdd5b65e /vcl/source/window/window2.cxx
parent01e4acd1dc3bfedb9c37b4b9bb93be1201b475a5 (diff)
vcl: check mpWindowImpl for nullptr
Change-Id: I492c7d5c1846df7507b1f043b80de4e61ff8ca86 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117282 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r--vcl/source/window/window2.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 5477e98be940..3975629e5838 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -890,6 +890,11 @@ vcl::Window* Window::ImplGetFirstOverlapWindow()
const vcl::Window* Window::ImplGetFirstOverlapWindow() const
{
+ if (!mpWindowImpl)
+ {
+ return nullptr;
+ }
+
if ( mpWindowImpl->mbOverlapWin )
return this;
else