Bug
This commit is contained in:
parent
0ef5b668e8
commit
be8829bbcd
@ -823,9 +823,11 @@ public class MapLogic : Shared.Models.Methods.IMapLogic
|
|||||||
directoryName = Path.GetDirectoryName(mapping.MappingFromItem.RelativePath);
|
directoryName = Path.GetDirectoryName(mapping.MappingFromItem.RelativePath);
|
||||||
if (directoryName is null)
|
if (directoryName is null)
|
||||||
throw new NotSupportedException();
|
throw new NotSupportedException();
|
||||||
|
if (mapping.MappingFromPerson is null)
|
||||||
|
continue;
|
||||||
if (mapping.MappingFromItem.ResizedFileHolder.DirectoryName is null || !mapping.MappingFromItem.ResizedFileHolder.Exists)
|
if (mapping.MappingFromItem.ResizedFileHolder.DirectoryName is null || !mapping.MappingFromItem.ResizedFileHolder.Exists)
|
||||||
continue;
|
continue;
|
||||||
if (mapping.By is null or Shared.Models.Stateless.IMapLogic.Sorting || mapping.MappingFromPerson?.ApproximateYears is null)
|
if (mapping.By is null or Shared.Models.Stateless.IMapLogic.Sorting)
|
||||||
continue;
|
continue;
|
||||||
if (string.IsNullOrEmpty(mapping.MappingFromPerson.SegmentB))
|
if (string.IsNullOrEmpty(mapping.MappingFromPerson.SegmentB))
|
||||||
throw new NotSupportedException();
|
throw new NotSupportedException();
|
||||||
@ -839,7 +841,7 @@ public class MapLogic : Shared.Models.Methods.IMapLogic
|
|||||||
personKey = mapping.MappingFromPerson.PersonBirthday.Value.Ticks;
|
personKey = mapping.MappingFromPerson.PersonBirthday.Value.Ticks;
|
||||||
if (!personKeyToCount.ContainsKey(personKey))
|
if (!personKeyToCount.ContainsKey(personKey))
|
||||||
personKeyToCount.Add(personKey, 0);
|
personKeyToCount.Add(personKey, 0);
|
||||||
if (personKeyToCount[personKey] > 1)
|
if (personKeyToCount[personKey] > _Configuration.PersonCharactersCopyCount)
|
||||||
continue;
|
continue;
|
||||||
if (!_PersonKeyToPersonContainer.TryGetValue(personKey, out personContainer))
|
if (!_PersonKeyToPersonContainer.TryGetValue(personKey, out personContainer))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user