You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was detected when comparing root elements, for example, of a value type. When change is detected in the root element, a null reference exception is launched when creating the ChangeRecord (CreateChange() method):
var displayName = currentMember.DisplayName ?? propertyName.ToSpacedWords();
It seems to be caused by the currentMember variable, which is null when comparing root elements.
Code snippet to reproduce the error:
int original = 1;
int current = 2;
var comparer = new EntityComparer();
var changes = comparer.Compare(original, current);
The text was updated successfully, but these errors were encountered:
This issue was detected when comparing root elements, for example, of a value type. When change is detected in the root element, a null reference exception is launched when creating the ChangeRecord (
CreateChange()
method):var displayName = currentMember.DisplayName ?? propertyName.ToSpacedWords();
It seems to be caused by the
currentMember
variable, which is null when comparing root elements.Code snippet to reproduce the error:
The text was updated successfully, but these errors were encountered: