diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 31e0fdc3f109..6cab2fac0af4 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -3932,9 +3932,9 @@ namespace std::vector aCurrencyIDs; - SfxObjectShell* pDocShell = SfxObjectShell::Current(); - if (auto pModelAccessor = pDocShell->GetDocumentModelAccessor()) - aCurrencyIDs = pModelAccessor->getDocumentCurrencies(); + if (SfxObjectShell* pDocShell = SfxObjectShell::Current()) + if (auto pModelAccessor = pDocShell->GetDocumentModelAccessor()) + aCurrencyIDs = pModelAccessor->getDocumentCurrencies(); SvxCurrencyToolBoxControl::GetCurrencySymbols(aList, true, aCurrencyList, aCurrencyIDs);