diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx index fe68d386195c..0f24677ab25c 100644 --- a/sc/source/ui/view/dbfunc.cxx +++ b/sc/source/ui/view/dbfunc.cxx @@ -407,9 +407,11 @@ void ScDBFunc::ModifiedAutoFilter(ScDocShell* pDocSh) ScDocShellModificator aModificator(*pDocSh); aModificator.SetDocumentModified(); - SfxBindings* pBindings = pDocSh->GetViewBindings(); - pBindings->Invalidate(SID_AUTO_FILTER); - pBindings->Invalidate(SID_AUTOFILTER_HIDE); + if (SfxBindings* pBindings = pDocSh->GetViewBindings()) + { + pBindings->Invalidate(SID_AUTO_FILTER); + pBindings->Invalidate(SID_AUTOFILTER_HIDE); + } } // just hide, no data change