diff --git a/main/OpenCover.Framework/Persistance/BasePersistance.cs b/main/OpenCover.Framework/Persistance/BasePersistance.cs index f17be55a3..10d7101d3 100644 --- a/main/OpenCover.Framework/Persistance/BasePersistance.cs +++ b/main/OpenCover.Framework/Persistance/BasePersistance.cs @@ -393,7 +393,7 @@ from method in @class.Methods.Where(x => !x.ShouldSerializeSkippedDueTo()) private static void MapFileReferences(IEnumerable points, IDictionary filesDictionary) { - foreach (var pt in points) + foreach (var pt in points.Where(p => p.FileId == 0)) { uint fileid; filesDictionary.TryGetValue(pt.Document ?? "", out fileid);