Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff.GetHashCode() throws a NullReferenceException #139

Open
dafbyte opened this issue Mar 21, 2023 · 0 comments
Open

Diff.GetHashCode() throws a NullReferenceException #139

dafbyte opened this issue Mar 21, 2023 · 0 comments

Comments

@dafbyte
Copy link

dafbyte commented Mar 21, 2023

The C# implementation doesn't consider null value for the text field.

The following line shows how to reproduce.
This will not raise a warning on .NET Framework variations (v2.0, v3.x, v4.x).

Diff diff = new Diff(Operation.EQUAL, null);
int hashCode = diff.GetHashCode();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant