Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Src/xWorks/RecordClerk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,11 @@ public bool OnJumpToRecord(object argument)
// target before complaining to the user about a filter being on.
var mdc = (IFwMetaDataCacheManaged)m_list.VirtualListPublisher.MetaDataCache;
int clidList = mdc.FieldExists(m_list.Flid) ? mdc.GetDstClsId(m_list.Flid) : -1;
int clidObj = m_list.Cache.ServiceLocator.GetInstance<ICmObjectRepository>().GetObject(hvoTarget).ClassID;
ICmObjectRepository objRepository = m_list.Cache.ServiceLocator.GetInstance<ICmObjectRepository>();
if (!objRepository.TryGetObject(hvoTarget, out ICmObject targetObject))
// The object was deleted (LT-22063).
return true;
int clidObj = targetObject.ClassID;

// If (int) clidList is -1, that means it was for a decorator property and the IsSameOrSubclassOf
// test won't be valid.
Expand Down
Loading