diff options
-rw-r--r-- | sfx2/source/bastyp/fltfnc.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index 8234b10f95e5..3b0fbdcd9478 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -1047,7 +1047,10 @@ void SfxFilterContainer::ReadSingleFilter_Impl( void SfxFilterContainer::ReadFilters_Impl( bool bUpdate ) { if ( !pFilterArr ) + { CreateFilterArr(); + assert(pFilterArr); + } bFirstRead = false; SfxFilterList_Impl& rList = *pFilterArr; diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index d94ef124b0b5..756fda428273 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -190,6 +190,7 @@ void SfxLokHelper::setView(int nId) return; const SfxViewShell* pViewShell = *itViewShell; + assert(pViewShell); DisableCallbacks dc; bool bIsCurrShell = (pViewShell == SfxViewShell::Current()); |