diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 5bcb9ef22b98..ce3822502a36 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -1063,7 +1063,7 @@ void SfxLokHelper::getCommandValues(tools::JsonWriter& rJsonWriter, std::string_ void SfxLokHelper::notifyUpdate(SfxViewShell const* pThisView, int nType) { - if (DisableCallbacks::disabled()) + if (DisableCallbacks::disabled() || !pThisView) return; pThisView->libreOfficeKitViewUpdatedCallback(nType);