diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-03-24 11:10:18 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-08 15:45:41 +0200 |
commit | 3889d15537ad1cc3db9dce6f410dc42265d873b9 (patch) | |
tree | 1a6b32408dadef920e09162f19e836fb39d29add /vcl/source/window | |
parent | 9968367d841a0a1bd81e1535cfc01b782d2febb5 (diff) |
ImplNewInputContext: check pointer before use
Change-Id: Id98cc2037f6cfb9c5468d67b00595d940aa88946
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113030
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113785
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/window.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 4c1b8c72d699..08b07aadbd17 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1729,7 +1729,7 @@ void Window::ImplNewInputContext() { ImplSVData* pSVData = ImplGetSVData(); vcl::Window* pFocusWin = pSVData->mpWinData->mpFocusWin; - if ( !pFocusWin || pFocusWin->IsDisposed() ) + if ( !pFocusWin || !pFocusWin->mpWindowImpl || pFocusWin->IsDisposed() ) return; // Is InputContext changed? |