Skip to content

Commit ad88c65

Browse files
committed
Fix LT-22410: Crash when clicking Copy Item button from Custom List
1 parent bb75a95 commit ad88c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/xWorks/RecordClerk.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ public bool OnDuplicateItemInVector(object argument)
26462646
{
26472647
const int subitemFlid = 7004;
26482648
ICmPossibility original = (ICmPossibility) m_list.CurrentObject;
2649-
if(original.OwningFlid != subitemFlid && !original.ShortNameTSS.Text.Equals("???")) // Don't duplicate subitems or unnamed items
2649+
if(original != null && original.OwningFlid != subitemFlid && !original.ShortNameTSS.Text.Equals("???")) // Don't duplicate subitems or unnamed items
26502650
TreeBarHandlerUtils.Tree_Duplicate(original, 0, Cache);
26512651
}
26522652
catch (ApplicationException ae)

0 commit comments

Comments
 (0)