Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Diff.ToString() throws a NullReferenceException #138

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

Diff.ToString() throws a NullReferenceException #138

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);
string actualString = diff.ToString();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant