Skip to content

Commit ae13236

Browse files
authored
Fixes LT-22404: Crash when selecting a category in Create New Gram Info (#665)
* Fixes LT-22404: Crash when selecting a category in Create New Gram Info * Remove redundant null check
1 parent f5fb17a commit ae13236

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Src/LexText/LexTextControls/MSAGroupBox.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,8 @@ private IEnumerable<IMoInflAffixSlot> GetSlots()
743743
if (m_morphType == null)
744744
{
745745
// Not called by InsertEntryDlg; need to figure out the morphtype(s)
746-
var lex = m_propertyTable.GetValue<ILexEntry>("ActiveClerkSelectedObject");
747-
if (lex != null)
746+
var obj = m_propertyTable.GetValue<ICmObject>("ActiveClerkSelectedObject");
747+
if (obj is ILexEntry lex)
748748
{
749749
return DomainObjectServices.GetSlots(m_cache, lex, m_selectedMainPOS);
750750
}

0 commit comments

Comments
 (0)