diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-08-23 16:50:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-08-23 21:08:43 +0200 |
commit | f6e8e1799315fd9494db514d969c24cf0ca46753 (patch) | |
tree | 5d74cfbebc57b4a4a055ecb2420ec96da38d8352 /svx | |
parent | 6fd755fb36472938757b2581cbe99f5e5fe1ae40 (diff) |
crashreporting: crash seen in FormNavigator
set_text(rVclIter.iter, rText, col);
...
m_xTreeView->set_text(*xEntry, pNameChangedHint->GetNewName());
...
m_pNavModel->Broadcast( aNameChangedHint );
Change-Id: I31275dd37de0146eae2ebb0931a5450e34fd21fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155985
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/navigatortree.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index bf860ce7198d..8ee866edb8d3 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -579,7 +579,8 @@ namespace svxform else if( auto pNameChangedHint = dynamic_cast<const FmNavNameChangedHint*>(&rHint) ) { std::unique_ptr<weld::TreeIter> xEntry = FindEntry(pNameChangedHint->GetEntryData()); - m_xTreeView->set_text(*xEntry, pNameChangedHint->GetNewName()); + if (xEntry) + m_xTreeView->set_text(*xEntry, pNameChangedHint->GetNewName()); } else if( dynamic_cast<const FmNavClearedHint*>(&rHint) ) { |