ignore outdated properties when restoring registry defaults (IDEA-121047)

This commit is contained in:
Eugene Zhuravlev
2016-01-13 12:17:52 +01:00
parent e42e970f27
commit 0e1499cf98
@@ -157,7 +157,13 @@ public class Registry {
Map<String, String> old = new HashMap<String, String>();
old.putAll(myUserProperties);
for (String each : old.keySet()) {
get(each).resetToDefault();
try {
get(each).resetToDefault();
}
catch (MissingResourceException e) {
// outdated property that is not declared in registry.properties anymore
myValues.remove(each);
}
}
}