Skip to content

Commit

Permalink
Fix crash encountered while bulk deleting entries (#298)
Browse files Browse the repository at this point in the history
* Fix crash encountered while bulk deleting entries
* Discovered while trying to prune entries in the
  project attached to https://jira.sil.org/browse/LT-18577
  • Loading branch information
jasonleenaylor authored Jul 1, 2024
1 parent f8c0ecd commit 3e4d2c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SIL.LCModel/DomainImpl/OverridesLing_Lex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4028,6 +4028,11 @@ internal IEnumerable<ILexEntryRef> ComplexFormRefsWithThisComponentSense
{
get
{
// Test the cache for null and yield an empty list - This can happen during a bulk delete operation
if (m_cache == null)
{
yield break;
}
((ICmObjectRepositoryInternal) Services.ObjectRepository).EnsureCompleteIncomingRefsFrom(
LexEntryRefTags.kflidComponentLexemes);
foreach (var item in m_incomingRefs)
Expand Down

0 comments on commit 3e4d2c6

Please sign in to comment.