Kaydet (Commit) d2763bde authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

tdf#113874 Guard against invalid states

Change-Id: I013dd4eb81f0fbef25d9f58e27fe72d800d910ba
Reviewed-on: https://gerrit.libreoffice.org/47702Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 21ee376d
......@@ -139,7 +139,9 @@ css::uno::Reference< css::accessibility::XAccessible > Window::CreateAccessible(
void Window::SetAccessible( const css::uno::Reference< css::accessibility::XAccessible >& x )
{
assert(mpWindowImpl);
if (!mpWindowImpl)
return;
mpWindowImpl->mxAccessible = x;
}
......
......@@ -3125,7 +3125,8 @@ const OUString& Window::GetHelpText() const
void Window::SetWindowPeer( Reference< css::awt::XWindowPeer > const & xPeer, VCLXWindow* pVCLXWindow )
{
assert(mpWindowImpl);
if (!mpWindowImpl)
return;
// be safe against re-entrance: first clear the old ref, then assign the new one
mpWindowImpl->mxWindowPeer.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment