diff --git a/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs b/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs index f5ec41e7b..73ee068f7 100644 --- a/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs +++ b/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs @@ -40,6 +40,8 @@ public static void UpdateNameByLanguage(this StreetNameVersion item, Language? l case Language.English: item.NameEnglish = value; break; + case null: + break; default: throw new InvalidOperationException($"Name language '{language}' has no mapping."); } } @@ -60,6 +62,8 @@ public static void UpdateHomonymAdditionByLanguage(this StreetNameVersion item, case Language.English: item.HomonymAdditionEnglish = value; break; + case null: + break; default: throw new InvalidOperationException($"HomonymAddition language '{language}' has no mapping."); } }