Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 93e368d

Browse files
committed
ILSpySymbolSource.GetLocalVariables: in case of error, return an empty collection instead of null
1 parent 09a0c5c commit 93e368d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public IEnumerable<ILLocalVariable> GetLocalVariables(IMethod method)
9696
var file = GetSymbols(method);
9797

9898
if (file == null || !file.DebugSymbols.ContainsKey(id))
99-
return null;
99+
return Enumerable.Empty<ILLocalVariable>();
100100

101101
var symbols = file.DebugSymbols[id];
102102

0 commit comments

Comments
 (0)