Skip to content

Commit

Permalink
Fix LT-21971: Crash adding a Feature Set (sillsdev#195)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Oliver <[email protected]>
  • Loading branch information
jtmaxwell3 and JakeOliver28 authored Oct 31, 2024
1 parent 78c66cd commit fd69e47
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ private void RemoveFeatureStructureFromMSA()
{
if (m_obj != null)
{
if (m_obj.ClassID != MoStemMsaTags.kClassId
&& m_obj.ClassID != MoInflAffMsaTags.kClassId
&& m_obj.ClassID != MoDerivAffMsaTags.kClassId)
// Avoid creating a unit of work if there is nothing to be done.
// This prevents "Can't start new task, while broadcasting PropChanges." (LT-21971)
return;
NonUndoableUnitOfWorkHelper.DoUsingNewOrCurrentUOW(m_cache.ServiceLocator.GetInstance<IActionHandler>(), () =>
{
switch (m_obj.ClassID)
Expand Down

0 comments on commit fd69e47

Please sign in to comment.