summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/mouse.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx
index 9b533b991a9e..c77391f8393a 100644
--- a/vcl/source/window/mouse.cxx
+++ b/vcl/source/window/mouse.cxx
@@ -636,6 +636,8 @@ void Window::EnterWait()
void Window::LeaveWait()
{
+ if( !mpWindowImpl )
+ return;
if ( mpWindowImpl->mnWaitCount )
{