From 20dec3e3f126d381a341bc03ddbe53b8a50bd224 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 9 Dec 2018 11:44:10 +0100 Subject: [PATCH] Fix possible null reference. --- ICSharpCode.Decompiler/DecompilerException.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/DecompilerException.cs b/ICSharpCode.Decompiler/DecompilerException.cs index 287963cdc..c8635d322 100644 --- a/ICSharpCode.Decompiler/DecompilerException.cs +++ b/ICSharpCode.Decompiler/DecompilerException.cs @@ -42,7 +42,7 @@ namespace ICSharpCode.Decompiler public IModule Module { get; } public DecompilerException(MetadataModule module, IEntity decompiledEntity, Exception innerException, string message = null) - : base(message ?? "Error decompiling " + decompiledEntity.FullName + Environment.NewLine, innerException) + : base((message ?? "Error decompiling " + decompiledEntity?.FullName) + Environment.NewLine, innerException) { this.Module = module; this.DecompiledEntity = decompiledEntity;