google / diff-match-patch

Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diff.ToString() throws a NullReferenceException

dafbyte opened this issue · comments

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();