fix: prevents fatal crash on old model cards (#548)
* fix: prevents fatal crash on old model cards * fix: formatting --------- Co-authored-by: Claire Kuang <kuang.claire@gmail.com> Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a0d5e3b2d4
commit
0b26e021cd
@@ -399,6 +399,11 @@ internal sealed class RevitSendBinding : RevitBaseBinding, ISendBinding
|
||||
viewFilter.SetContext(_revitContext);
|
||||
}
|
||||
|
||||
if (modelCard.SendFilter is null || modelCard.SendFilter.IdMap is null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var selectedObjects = modelCard.SendFilter.NotNull().IdMap.NotNull().Values;
|
||||
var intersection = selectedObjects.Intersect(objUniqueIds).ToList();
|
||||
bool isExpired = intersection.Count != 0;
|
||||
|
||||
Reference in New Issue
Block a user