diff options
Diffstat (limited to 'cui/source/options/personalization.cxx')
-rw-r--r-- | cui/source/options/personalization.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 5fe9a7db4c53..49974a90eef2 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -61,9 +61,13 @@ OUString SvxPersonalizationTabPage::GetAllStrings() OUString radioButton[] = { "no_persona", "default_persona" }; for (const auto& radio : radioButton) - sAllStrings += m_xBuilder->weld_radio_button(radio)->get_label() + " "; + { + if (const auto& pString = m_xBuilder->weld_radio_button(radio)) + sAllStrings += pString->get_label() + " "; + } - sAllStrings += m_xBuilder->weld_label("personas_label")->get_label() + " "; + if (const auto& pString = m_xBuilder->weld_label("personas_label")) + sAllStrings += pString->get_label() + " "; return sAllStrings.replaceAll("_", ""); } |