if we clear it after load, load is meaningless! (issue #600)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3453 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-06-16 01:38:23 +00:00
1 parent d99b3cf0a0
commit dccd3d108f
1 file changed
+2 -1
+2 -1
View File
@@ -57,6 +57,8 @@ public class User extends AbstractModelObject {
* Loads the other data from disk if it's available.
*/
private synchronized void load() {
properties.clear();
XmlFile config = getConfigFile();
try {
if(config.exists())
@@ -65,7 +67,6 @@ public class User extends AbstractModelObject {
LOGGER.log(Level.SEVERE, "Failed to load "+config,e);
}
properties.clear();
// allocate default instances if needed.
// doing so after load makes sure that newly added user properties do get reflected
for (UserPropertyDescriptor d : UserProperties.LIST) {