Skip to content

Commit

Permalink
Merge pull request #35 from Dynatrace/bugfix-multifiles
Browse files Browse the repository at this point in the history
fix error with multiple files in metainfo
  • Loading branch information
discostu105 authored Mar 8, 2017
2 parents a19320d + 86695e7 commit 5109f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SuperDumpService/Services/DumpStorageFilebased.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ internal IEnumerable<SDFileInfo> GetSDFileInfos(string bundleId, string dumpId)

private SDFileEntry GetSDFileEntry(DumpMetainfo dumpInfo, FileInfo fileInfo) {
// the file should be registered in dumpInfo
SDFileEntry fileEntry = dumpInfo.Files.Where(x => x.FileName == fileInfo.Name).SingleOrDefault();
SDFileEntry fileEntry = dumpInfo.Files.Where(x => x.FileName == fileInfo.Name).FirstOrDefault(); // due to a bug, multiple entries for the same file could exist
if (fileEntry != null) return fileEntry;

// but if it's not registered, do some heuristic to figure out which type of file it is.
Expand Down

0 comments on commit 5109f05

Please sign in to comment.