diff options
Diffstat (limited to 'vcl/source/uitest')
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 83c4727218d0..32d8d2417f0f 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -393,7 +393,7 @@ namespace { vcl::Window* findChild(vcl::Window* pParent, const OUString& rID, bool bRequireVisible = false) { - if (!pParent) + if (!pParent || pParent->IsDisposed()) return nullptr; if (pParent->get_id() == rID) |