From 93e368d5e22db791f8161274b06a81e3b27eb0e4 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 10 May 2014 20:39:02 +0200 Subject: [PATCH] ILSpySymbolSource.GetLocalVariables: in case of error, return an empty collection instead of null --- src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs index 51c6e1eea9..218178354b 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs @@ -96,7 +96,7 @@ namespace ICSharpCode.ILSpyAddIn var file = GetSymbols(method); if (file == null || !file.DebugSymbols.ContainsKey(id)) - return null; + return Enumerable.Empty(); var symbols = file.DebugSymbols[id];