@@ -40,7 +40,7 @@ namespace Coverlet.Core.Helpers
|
||||
{
|
||||
throw new FileNotFoundException("Module test path not found", moduleTestPath);
|
||||
}
|
||||
_sourceRootMapping = LoadSourceRootMapping(Path.GetDirectoryName(moduleTestPath)) ?? new Dictionary<string, List<SourceRootMapping>>();
|
||||
_sourceRootMapping = LoadSourceRootMapping(Path.GetDirectoryName(moduleTestPath));
|
||||
}
|
||||
|
||||
private Dictionary<string, List<SourceRootMapping>> LoadSourceRootMapping(string directory)
|
||||
|
||||
@@ -728,7 +728,7 @@ namespace Coverlet.Core.Symbols
|
||||
Instruction startFilter = exceptionHandler.FilterStart;
|
||||
Instruction endFilter = startFilter;
|
||||
|
||||
while (endFilter.OpCode != OpCodes.Endfilter && endFilter != null)
|
||||
while (endFilter != null && endFilter.OpCode != OpCodes.Endfilter)
|
||||
{
|
||||
endFilter = endFilter.Next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user