diff --git a/accessible/windows/msaa/DocAccessibleWrap.cpp b/accessible/windows/msaa/DocAccessibleWrap.cpp index 621c6c68c1ad..3fc50a130f72 100644 --- a/accessible/windows/msaa/DocAccessibleWrap.cpp +++ b/accessible/windows/msaa/DocAccessibleWrap.cpp @@ -127,6 +127,10 @@ DocAccessibleWrap::GetNativeWindow() const auto tab = static_cast(ipcDoc->Manager()); MOZ_ASSERT(tab); + if (!tab) { + return nullptr; + } + return reinterpret_cast(tab->GetNativeWindowHandle()); } else if (mHWND) { return mHWND;