From 327428aa1164b8a8f0b239cd14c6da21af52c099 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 24 Nov 2019 20:59:56 +0100 Subject: [PATCH] Fix #1810: ArgumentNullException in DecompilerTextView.ShowText --- ILSpy/TextView/DecompilerTextView.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs index 0892952a6..667aa09ba 100644 --- a/ILSpy/TextView/DecompilerTextView.cs +++ b/ILSpy/TextView/DecompilerTextView.cs @@ -567,7 +567,8 @@ namespace ICSharpCode.ILSpy.TextView this.nextDecompilationRun.TaskCompletionSource.TrySetCanceled(); this.nextDecompilationRun = null; } - textOutput.Title = string.Join(", ", nodes.Select(n => n.ToString())); + if (nodes != null && string.IsNullOrEmpty(textOutput.Title)) + textOutput.Title = string.Join(", ", nodes.Select(n => n.ToString())); ShowOutput(textOutput, highlighting); decompiledNodes = nodes; }