Fixes not being able to add languages

This commit is contained in:
Robert
2019-03-22 15:06:09 +01:00
parent 4ea169a636
commit d107289a08

View File

@@ -105,7 +105,7 @@ namespace Umbraco.Web.Editors
// the localization service might return the generic language even when queried for specific ones (e.g. "da" when queried for "da-DK")
// - we need to handle that explicitly
if (existing.IsoCode != language.IsoCode)
if (existing?.IsoCode != language.IsoCode)
{
existing = null;
}