Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcs/tools/mono-api-html/MarkdownFormatter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/tools/mono-api-html/MarkdownFormatter.cs b/mcs/tools/mono-api-html/MarkdownFormatter.cs
index 978b805532c..d2bbddaa03f 100644
--- a/mcs/tools/mono-api-html/MarkdownFormatter.cs
+++ b/mcs/tools/mono-api-html/MarkdownFormatter.cs
@@ -176,9 +176,9 @@ namespace Mono.ApiTools {
public override void DiffModification (StringBuilder output, string old, string @new, bool breaking)
{
- if (old.Length > 0)
+ if (old != null && old.Length > 0)
DiffAddition (output, old, breaking);
- if (@new.Length > 0)
+ if (@new != null && @new.Length > 0)
DiffRemoval (output, @new, true);
}