summaryrefslogtreecommitdiff
path: root/vcl/source/window/event.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/event.cxx')
-rw-r--r--vcl/source/window/event.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index b786552a6789..c8c6b730e1dd 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -217,7 +217,7 @@ void Window::CallEventListeners( VclEventId nEvent, void* pData )
// If maEventListeners is empty, the XVCLWindow has not yet been initialized.
// Calling GetComponentInterface will do that.
- if (mpWindowImpl->maEventListeners.empty())
+ if (mpWindowImpl->maEventListeners.empty() && pData)
xWindow->GetComponentInterface();
if (!mpWindowImpl->maEventListeners.empty())