Fixes U4-1987 Error when attempting to save document type

This commit is contained in:
Sebastiaan Janssen
2013-03-26 09:33:08 -01:00
parent 0e392b398c
commit b2414c1ab8

View File

@@ -144,7 +144,8 @@ namespace umbraco.cms.businesslogic
}
foreach (Tuple<string, string> key in toDelete)
{
_propertyTypeCache.Remove(key);
if(_propertyTypeCache.ContainsKey(key))
_propertyTypeCache.Remove(key);
}
}
//don't put lock around this as it is ConcurrentDictionary.