Skip to content

Commit a489730

Browse files
committed
Fix a nullref
1 parent 1f85ca0 commit a489730

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/StructuredLogger/Analyzers/FileCopyMap.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ private void TryExplainSingleFileCopy(FileData fileData, IList<SearchResult> res
353353
var singleResult = resultSet.FirstOrDefault();
354354
if (resultSet.Count > 1)
355355
{
356-
singleResult = resultSet.FirstOrDefault(r => r.RootFolder == "Incoming");
356+
singleResult = resultSet.FirstOrDefault(r => r.RootFolder == "Incoming")
357+
?? singleResult;
357358
}
358359

359360
var fileCopyInfo =

0 commit comments

Comments
 (0)