Skip to content

Commit

Permalink
Revert changes 5fae763 (#169)
Browse files Browse the repository at this point in the history
Change introduces significant amount of first-chance exceptions in certain mapping scenarios.

See #167 for details
  • Loading branch information
rjmurillo authored Aug 4, 2017
1 parent e504a1b commit d695cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Qwiq.Mapper/Attributes/AttributeMapperStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private static IEnumerable<PropertyInfo> PropertiesOnWorkItemCache(IPropertyInsp
new { property, fieldName = PropertyInfoFieldCache(inspector, property)?.FieldName })
.Where(
t =>
!string.IsNullOrEmpty(t.fieldName))
!string.IsNullOrEmpty(t.fieldName) && workItem.Fields.Contains(t.fieldName))
.Select(t => t.property)
.ToList();
});
Expand Down

0 comments on commit d695cb3

Please sign in to comment.