Browse Source

Fix #1810: ArgumentNullException in DecompilerTextView.ShowText

pull/1820/head
Siegfried Pammer 6 years ago
parent
commit
327428aa11
  1. 3
      ILSpy/TextView/DecompilerTextView.cs

3
ILSpy/TextView/DecompilerTextView.cs

@ -567,7 +567,8 @@ namespace ICSharpCode.ILSpy.TextView
this.nextDecompilationRun.TaskCompletionSource.TrySetCanceled(); this.nextDecompilationRun.TaskCompletionSource.TrySetCanceled();
this.nextDecompilationRun = null; 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); ShowOutput(textOutput, highlighting);
decompiledNodes = nodes; decompiledNodes = nodes;
} }

Loading…
Cancel
Save